[FFmpeg-devel] [PATCH] libavdevice/pulse_audio_enc: remove inevitable early return in mute state and volume change callback
Varun Dhar
vdhar1 at protonmail.com
Sun Dec 18 23:30:48 EET 2022
Signed-off-by: Varun Dhar <vdhar1 at protonmail.com>
---
libavdevice/pulse_audio_enc.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/libavdevice/pulse_audio_enc.c b/libavdevice/pulse_audio_enc.c
index 038401c680..13e3165e36 100644
--- a/libavdevice/pulse_audio_enc.c
+++ b/libavdevice/pulse_audio_enc.c
@@ -95,9 +95,6 @@ static void pulse_audio_sink_input_cb(pa_context *ctx, const pa_sink_input_info
AVFormatContext *h = userdata;
PulseData *s = h->priv_data;
- if (s->ctx != ctx)
- return;
-
if (!eol) {
double val;
pa_volume_t vol = pa_cvolume_avg(&i->volume);
--
2.39.0
More information about the ffmpeg-devel
mailing list