mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-26 03:21:03 +00:00
utils/streamproducer: reset callbacks when removing consumer
This commit is contained in:
parent
98cc289bcc
commit
351f070c8e
1 changed files with 1 additions and 0 deletions
|
@ -102,6 +102,7 @@ impl StreamProducer {
|
|||
.is_some()
|
||||
{
|
||||
gst::debug!(CAT, obj: &self.appsink, "Removed consumer {} ({:?})", name, consumer);
|
||||
consumer.set_callbacks(gst_app::AppSrcCallbacks::builder().build());
|
||||
} else {
|
||||
gst::debug!(CAT, obj: &self.appsink, "Consumer {} ({:?}) not found", name, consumer);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue