mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
uridecodebin3: don't segfault if a pad is not a source pad when it is removed
Ignore to handling a pad of decodebin3 which doesn't have corresponding output when it is removed. https://bugzilla.gnome.org/show_bug.cgi?id=795529
This commit is contained in:
parent
1b36477d9e
commit
5b01f9bbc2
1 changed files with 3 additions and 0 deletions
|
@ -565,6 +565,9 @@ db_pad_removed_cb (GstElement * element, GstPad * pad, GstURIDecodeBin3 * dec)
|
||||||
GList *tmp;
|
GList *tmp;
|
||||||
OutputPad *output = NULL;
|
OutputPad *output = NULL;
|
||||||
|
|
||||||
|
if (!GST_PAD_IS_SRC (pad))
|
||||||
|
return;
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (dec, "pad %s:%s", GST_DEBUG_PAD_NAME (pad));
|
GST_DEBUG_OBJECT (dec, "pad %s:%s", GST_DEBUG_PAD_NAME (pad));
|
||||||
/* FIXME: LOCK for list access */
|
/* FIXME: LOCK for list access */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue