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 354c2862e0
commit 990e5bbeac

View file

@ -1431,7 +1431,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,