mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-03 05:21:57 +01:00
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:
parent
31002ca534
commit
2b280de663
@ -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_);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user