From: Tim-Philipp Müller Date: Mon, 9 Jul 2012 07:35:22 +0000 (+0100) Subject: decodebin: make GValueArray arguments in autoplug-* signals static scope to avoid... X-Git-Tag: 1.19.3~511^2~6232 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1dea99ded399043cfaed80b1b97492451eb219ae;p=platform%2Fupstream%2Fgstreamer.git decodebin: make GValueArray arguments in autoplug-* signals static scope to avoid copies --- diff --git a/gst/playback/gstdecodebin2.c b/gst/playback/gstdecodebin2.c index 4439c7e..dd0fc9d 100644 --- a/gst/playback/gstdecodebin2.c +++ b/gst/playback/gstdecodebin2.c @@ -715,8 +715,8 @@ gst_decode_bin_class_init (GstDecodeBinClass * klass) g_signal_new ("autoplug-sort", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstDecodeBinClass, autoplug_sort), _gst_array_hasvalue_accumulator, NULL, - g_cclosure_marshal_generic, G_TYPE_VALUE_ARRAY, 3, - GST_TYPE_PAD, GST_TYPE_CAPS, G_TYPE_VALUE_ARRAY); + g_cclosure_marshal_generic, G_TYPE_VALUE_ARRAY, 3, GST_TYPE_PAD, + GST_TYPE_CAPS, G_TYPE_VALUE_ARRAY | G_SIGNAL_TYPE_STATIC_SCOPE); /** * GstDecodeBin::autoplug-select: diff --git a/gst/playback/gsturidecodebin.c b/gst/playback/gsturidecodebin.c index 82bfd45..ceefd74 100644 --- a/gst/playback/gsturidecodebin.c +++ b/gst/playback/gsturidecodebin.c @@ -570,8 +570,8 @@ gst_uri_decode_bin_class_init (GstURIDecodeBinClass * klass) g_signal_new ("autoplug-sort", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstURIDecodeBinClass, autoplug_sort), _gst_array_hasvalue_accumulator, NULL, - g_cclosure_marshal_generic, G_TYPE_VALUE_ARRAY, 3, - GST_TYPE_PAD, GST_TYPE_CAPS, G_TYPE_VALUE_ARRAY); + g_cclosure_marshal_generic, G_TYPE_VALUE_ARRAY, 3, GST_TYPE_PAD, + GST_TYPE_CAPS, G_TYPE_VALUE_ARRAY | G_SIGNAL_TYPE_STATIC_SCOPE); /** * GstURIDecodeBin::autoplug-select: