From 03b3c4a8069d266722be4531ac46de17a15e8064 Mon Sep 17 00:00:00 2001 From: Anna Schumaker Date: Wed, 10 Nov 2021 16:40:18 -0500 Subject: [PATCH] audio: Fix GstOutputSelector pad negotiation All sinks need to post the EOS message before the pipeline can pass it on to our application. Using pad negotiation mode 2 means that the message is only sent to the active path in the output selector, leaving our application hanging waiting for the inactive path to post EOS as well. Fixes: #33 (Fix Autopause not resetting) Signed-off-by: Anna Schumaker --- audio/replaygain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audio/replaygain.py b/audio/replaygain.py index 4fcdcb4..606dc3a 100644 --- a/audio/replaygain.py +++ b/audio/replaygain.py @@ -28,7 +28,7 @@ class ReplayGainSink(Gst.Bin): self.rglimiter.get_static_pad("src").link( self.funnel.get_request_pad("sink_%u")) - self.selector.set_property("pad-negotiation-mode", 2) + self.selector.set_property("pad-negotiation-mode", 1) self.selector.set_property("active-pad", self.shortcut) pad = self.selector.get_static_pad("sink")