mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-08 21:28:45 +00:00
splitmuxsink: Fix assertion failure on set_property()
GValue might have null object. (gst-inspect-1.0:10304): GStreamer-CRITICAL ... gst_object_ref_sink: assertion 'object != NULL' failed
This commit is contained in:
parent
bb1ce82e39
commit
8445685a21
1 changed files with 6 additions and 6 deletions
|
@ -731,17 +731,17 @@ gst_splitmux_sink_set_property (GObject * object, guint prop_id,
|
|||
break;
|
||||
case PROP_SINK:
|
||||
GST_OBJECT_LOCK (splitmux);
|
||||
if (splitmux->provided_sink)
|
||||
gst_object_unref (splitmux->provided_sink);
|
||||
gst_clear_object (&splitmux->provided_sink);
|
||||
splitmux->provided_sink = g_value_get_object (value);
|
||||
if (splitmux->provided_sink)
|
||||
gst_object_ref_sink (splitmux->provided_sink);
|
||||
GST_OBJECT_UNLOCK (splitmux);
|
||||
break;
|
||||
case PROP_MUXER:
|
||||
GST_OBJECT_LOCK (splitmux);
|
||||
if (splitmux->provided_muxer)
|
||||
gst_object_unref (splitmux->provided_muxer);
|
||||
gst_clear_object (&splitmux->provided_muxer);
|
||||
splitmux->provided_muxer = g_value_get_object (value);
|
||||
if (splitmux->provided_muxer)
|
||||
gst_object_ref_sink (splitmux->provided_muxer);
|
||||
GST_OBJECT_UNLOCK (splitmux);
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue