From: hoonhee.lee Date: Wed, 25 Apr 2018 00:28:53 +0000 (+0900) Subject: uridecodebin3: don't segfault if a pad is not a source pad when it is removed X-Git-Tag: 1.19.3~511^2~1703 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5b01f9bbc27d02470f15b2c717d0db749e1f4ce6;p=platform%2Fupstream%2Fgstreamer.git 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 --- diff --git a/gst/playback/gsturidecodebin3.c b/gst/playback/gsturidecodebin3.c index 9b2147a..436e37c 100644 --- a/gst/playback/gsturidecodebin3.c +++ b/gst/playback/gsturidecodebin3.c @@ -565,6 +565,9 @@ db_pad_removed_cb (GstElement * element, GstPad * pad, GstURIDecodeBin3 * dec) GList *tmp; OutputPad *output = NULL; + if (!GST_PAD_IS_SRC (pad)) + return; + GST_DEBUG_OBJECT (dec, "pad %s:%s", GST_DEBUG_PAD_NAME (pad)); /* FIXME: LOCK for list access */