uriplaylistbin: remove pad probe when shutting down

The previous patch was unblocking the receiver in the pad probe but
it could be blocked again as the item streaming status was not changed.
This commit is contained in:
Guillaume Desmottes 2022-04-01 10:01:46 +02:00
parent d48d732038
commit bf14939b9b

View file

@ -1430,7 +1430,12 @@ impl UriPlaylistBin {
pad.name()
);
let _ = receiver.recv();
if let Ok(false) = receiver.recv() {
// we are shutting down so remove the probe.
// Don't handle Err(_) here as if the item has multiple pads, the sender may be dropped in unblock_item()
// before all probes received the message, resulting in a receiving error.
return gst::PadProbeReturn::Remove;
}
gst::log!(
CAT,