mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 21:48:55 +00:00
dashdemux: unref pad reference when removing internal source in error
Avoids leaking the pad in error situations
This commit is contained in:
parent
4afa05e567
commit
1cabb3b5a5
1 changed files with 2 additions and 0 deletions
|
@ -2077,9 +2077,11 @@ gst_dash_demux_stream_update_source (GstDashDemuxStream * stream,
|
||||||
GST_DEBUG_OBJECT (demux, "Failed to re-use old source element: %s",
|
GST_DEBUG_OBJECT (demux, "Failed to re-use old source element: %s",
|
||||||
err->message);
|
err->message);
|
||||||
g_clear_error (&err);
|
g_clear_error (&err);
|
||||||
|
gst_object_unref (stream->src_srcpad);
|
||||||
gst_element_set_state (stream->src, GST_STATE_NULL);
|
gst_element_set_state (stream->src, GST_STATE_NULL);
|
||||||
gst_bin_remove (GST_BIN_CAST (demux), stream->src);
|
gst_bin_remove (GST_BIN_CAST (demux), stream->src);
|
||||||
stream->src = NULL;
|
stream->src = NULL;
|
||||||
|
stream->src_srcpad = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
g_free (old_uri);
|
g_free (old_uri);
|
||||||
|
|
Loading…
Reference in a new issue