From: Sebastian Dröge Date: Fri, 18 Feb 2011 10:57:12 +0000 (+0100) Subject: decodebin2: Keep the original factory list if the sort signal handlers returned NULL X-Git-Tag: RELEASE-0.10.33~207 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=785f35a48e46ff99a7db1715e5edd182301e3555;p=platform%2Fupstream%2Fgst-plugins-base.git decodebin2: Keep the original factory list if the sort signal handlers returned NULL --- diff --git a/gst/playback/gstdecodebin2.c b/gst/playback/gstdecodebin2.c index e435789..7d762a2 100644 --- a/gst/playback/gstdecodebin2.c +++ b/gst/playback/gstdecodebin2.c @@ -1434,8 +1434,10 @@ analyze_new_pad (GstDecodeBin * dbin, GstElement * src, GstPad * pad, g_signal_emit (G_OBJECT (dbin), gst_decode_bin_signals[SIGNAL_AUTOPLUG_SORT], 0, dpad, caps, factories, &result); - g_value_array_free (factories); - factories = result; + if (result) { + g_value_array_free (factories); + factories = result; + } /* At this point we have a potential decoder, but we might not need it * if it doesn't match the output caps */