mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +00:00
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.
This commit is contained in:
parent
da4b5bf9f9
commit
2a6602d994
1 changed files with 1 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue