1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
commit ccda4ff52b4d317914994edcf5f41d4fa46e90af
Author: xtkoba <69125751+xtkoba@users.noreply.github.com>
Date: Fri May 20 05:21:03 2022 +0900
[pulseaudio-legacy] Fix type of local variables
in `on_message_latency`.
Applied-Upstream: https://github.com/wwmm/easyeffects/commit/ccda4ff52b4d317914994edcf5f41d4fa46e90af
---
diff --git a/src/pipeline_base.cpp b/src/pipeline_base.cpp
index 3d39701a..d8b6ce7d 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);
|