mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-22 03:21:00 +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
d48d732038
commit
bf14939b9b
1 changed files with 6 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue