From: Sebastian Dröge Date: Fri, 18 Feb 2011 11:02:07 +0000 (+0100) Subject: uridecodebin: Return NULL from the default autoplug-sort handler X-Git-Tag: 1.19.3~511^2~6555^2~1143 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=91122e4efc2d2a6306f09b13b36583efe93c2c40;p=platform%2Fupstream%2Fgstreamer.git uridecodebin: Return NULL from the default autoplug-sort handler ...instead of copying the array. Returning NULL will result in the original factories array to be used and prevents a useless array copy in most use cases. --- diff --git a/gst/playback/gsturidecodebin.c b/gst/playback/gsturidecodebin.c index c20fbfe..ddd322a 100644 --- a/gst/playback/gsturidecodebin.c +++ b/gst/playback/gsturidecodebin.c @@ -333,14 +333,7 @@ static GValueArray * gst_uri_decode_bin_autoplug_sort (GstElement * element, GstPad * pad, GstCaps * caps, GValueArray * factories) { - GValueArray *result; - - result = g_value_array_copy (factories); - - GST_DEBUG_OBJECT (element, "autoplug-sort returns %p", result); - - /* return input */ - return result; + return NULL; } static void