From: Sebastian Dröge Date: Fri, 18 Feb 2011 11:01:05 +0000 (+0100) Subject: decodebin2: Return NULL from the default autoplug-sort handler X-Git-Tag: RELEASE-0.10.33~204 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2a6602d994268b77e7135d28ff9d5b04c23aafb0;p=platform%2Fupstream%2Fgst-plugins-base.git decodebin2: 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/gstdecodebin2.c b/gst/playback/gstdecodebin2.c index f28ff4a..9e9d5e2 100644 --- a/gst/playback/gstdecodebin2.c +++ b/gst/playback/gstdecodebin2.c @@ -1308,14 +1308,7 @@ static GValueArray * gst_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 GstAutoplugSelectResult