mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-01-08 02:05:26 +00:00
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:
parent
354c2862e0
commit
990e5bbeac
1 changed files with 6 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue