mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 23:36:38 +00:00
decodebin: make GValueArray arguments in autoplug-* signals static scope to avoid copies
This commit is contained in:
parent
b395ecbe3b
commit
1dea99ded3
2 changed files with 4 additions and 4 deletions
|
@ -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:
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue