Attempt to fix track change hang

When switching between tracks with different sample rates, the probe queue blocks before the pipeline can emit EOS.
This prevents the track change from proceeding without manual intervention. This appears to be because the queue
element doesn't handle the rate change correctly (either due to buffer length, or cap negotiation).
The queue2 element however does handle this without blocking indefinitely.
This commit is contained in:
Mark Furneaux 2018-07-08 22:15:57 -04:00 committed by John Maguire
parent 31002ca534
commit 2b280de663
1 changed files with 1 additions and 1 deletions

View File

@ -276,7 +276,7 @@ bool GstEnginePipeline::Init() {
audioconvert_ = engine_->CreateElement("audioconvert", audiobin_);
tee = engine_->CreateElement("tee", audiobin_);
probe_queue = engine_->CreateElement("queue", audiobin_);
probe_queue = engine_->CreateElement("queue2", audiobin_);
probe_converter = engine_->CreateElement("audioconvert", audiobin_);
probe_sink = engine_->CreateElement("fakesink", audiobin_);