pulseeffects: Fix type of local variables

This commit is contained in:
Tee KOBAYASHI 2022-05-20 05:27:50 +09:00 committed by xtkoba
parent 636a9769c4
commit 1db1b849b1
2 changed files with 41 additions and 0 deletions

View File

@ -4,6 +4,7 @@ TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="@termux"
# Do not upgrade to EasyEffects version.
TERMUX_PKG_VERSION=4.8.6
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://github.com/wwmm/easyeffects/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=3eb69c43a5a3e7a7551e06afd6efb537e7551cc35f138a6cb6c4fc68edd1e843
TERMUX_PKG_DEPENDS="boost, glib, gst-plugins-bad, gst-plugins-base, gst-plugins-good, gstreamer, gtk3, gtkmm3, libbs2b, libc++, libebur128, librnnoise, libsndfile, libzita-convolver, lilv, pulseaudio"

View File

@ -0,0 +1,40 @@
https://github.com/wwmm/easyeffects/pull/1536
https://github.com/termux/termux-packages/issues/10643
From ccda4ff52b4d317914994edcf5f41d4fa46e90af Mon Sep 17 00:00:00 2001
From: xtkoba <69125751+xtkoba@users.noreply.github.com>
Date: Fri, 20 May 2022 05:21:03 +0900
Subject: [PATCH] [pulseaudio-legacy] Fix type of local variables
in `on_message_latency`.
---
src/pipeline_base.cpp | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/pipeline_base.cpp b/src/pipeline_base.cpp
index 3d39701ae..d8b6ce7d3 100644
--- a/src/pipeline_base.cpp
+++ b/src/pipeline_base.cpp
@@ -116,8 +116,8 @@ void on_message_state_changed(const GstBus* gst_bus, GstMessage* message, Pipeli
void on_message_latency(const GstBus* gst_bus, GstMessage* message, PipelineBase* pb) {
if (std::strcmp(GST_OBJECT_NAME(message->src), "source") == 0) {
- int latency = 0;
- int buffer = 0;
+ pa_usec_t latency = 0;
+ pa_usec_t buffer = 0;
g_object_get(pb->source, "latency-time", &latency, nullptr);
g_object_get(pb->source, "buffer-time", &buffer, nullptr);
@@ -125,8 +125,8 @@ void on_message_latency(const GstBus* gst_bus, GstMessage* message, PipelineBase
util::debug(pb->log_tag + "pulsesrc latency [us]: " + std::to_string(latency));
util::debug(pb->log_tag + "pulsesrc buffer [us]: " + std::to_string(buffer));
} else if (std::strcmp(GST_OBJECT_NAME(message->src), "sink") == 0) {
- int latency = 0;
- int buffer = 0;
+ pa_usec_t latency = 0;
+ pa_usec_t buffer = 0;
g_object_get(pb->sink, "latency-time", &latency, nullptr);
g_object_get(pb->sink, "buffer-time", &buffer, nullptr);