decodebin: make GValueArray arguments in autoplug-* signals static scope to avoid copies

This commit is contained in:
Tim-Philipp Müller 2012-07-09 08:35:22 +01:00
parent b395ecbe3b
commit 1dea99ded3
2 changed files with 4 additions and 4 deletions

View file

@ -715,8 +715,8 @@ gst_decode_bin_class_init (GstDecodeBinClass * klass)
g_signal_new ("autoplug-sort", G_TYPE_FROM_CLASS (klass), g_signal_new ("autoplug-sort", G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstDecodeBinClass, autoplug_sort), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstDecodeBinClass, autoplug_sort),
_gst_array_hasvalue_accumulator, NULL, _gst_array_hasvalue_accumulator, NULL,
g_cclosure_marshal_generic, G_TYPE_VALUE_ARRAY, 3, g_cclosure_marshal_generic, G_TYPE_VALUE_ARRAY, 3, GST_TYPE_PAD,
GST_TYPE_PAD, GST_TYPE_CAPS, G_TYPE_VALUE_ARRAY); GST_TYPE_CAPS, G_TYPE_VALUE_ARRAY | G_SIGNAL_TYPE_STATIC_SCOPE);
/** /**
* GstDecodeBin::autoplug-select: * GstDecodeBin::autoplug-select:

View file

@ -570,8 +570,8 @@ gst_uri_decode_bin_class_init (GstURIDecodeBinClass * klass)
g_signal_new ("autoplug-sort", G_TYPE_FROM_CLASS (klass), g_signal_new ("autoplug-sort", G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstURIDecodeBinClass, autoplug_sort), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstURIDecodeBinClass, autoplug_sort),
_gst_array_hasvalue_accumulator, NULL, _gst_array_hasvalue_accumulator, NULL,
g_cclosure_marshal_generic, G_TYPE_VALUE_ARRAY, 3, g_cclosure_marshal_generic, G_TYPE_VALUE_ARRAY, 3, GST_TYPE_PAD,
GST_TYPE_PAD, GST_TYPE_CAPS, G_TYPE_VALUE_ARRAY); GST_TYPE_CAPS, G_TYPE_VALUE_ARRAY | G_SIGNAL_TYPE_STATIC_SCOPE);
/** /**
* GstURIDecodeBin::autoplug-select: * GstURIDecodeBin::autoplug-select: