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 <Anna@NoWheyCreamery.com>
This commit is contained in:
Anna Schumaker 2021-11-10 16:40:18 -05:00
parent 20e4ab4ba5
commit 03b3c4a806
1 changed files with 1 additions and 1 deletions

View File

@ -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")