mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 17:50:36 +00:00
discoverer: Do not try to unref the bus if it has not been set yet
It might happen if creation of the discoverer failed
This commit is contained in:
parent
f1562053fe
commit
0c0dfbd455
1 changed files with 2 additions and 1 deletions
|
@ -393,7 +393,8 @@ gst_discoverer_dispose (GObject * obj)
|
|||
|
||||
/* pipeline was set to NULL in _reset */
|
||||
gst_object_unref (dc->priv->pipeline);
|
||||
gst_object_unref (dc->priv->bus);
|
||||
if (dc->priv->bus)
|
||||
gst_object_unref (dc->priv->bus);
|
||||
|
||||
dc->priv->pipeline = NULL;
|
||||
dc->priv->uridecodebin = NULL;
|
||||
|
|
Loading…
Reference in a new issue