decodebin2: Keep the original factory list if the sort signal handlers returned NULL
This commit is contained in:
parent
0641eabeb2
commit
785f35a48e
@ -1434,8 +1434,10 @@ analyze_new_pad (GstDecodeBin * dbin, GstElement * src, GstPad * pad,
|
|||||||
g_signal_emit (G_OBJECT (dbin),
|
g_signal_emit (G_OBJECT (dbin),
|
||||||
gst_decode_bin_signals[SIGNAL_AUTOPLUG_SORT], 0, dpad, caps, factories,
|
gst_decode_bin_signals[SIGNAL_AUTOPLUG_SORT], 0, dpad, caps, factories,
|
||||||
&result);
|
&result);
|
||||||
|
if (result) {
|
||||||
g_value_array_free (factories);
|
g_value_array_free (factories);
|
||||||
factories = result;
|
factories = result;
|
||||||
|
}
|
||||||
|
|
||||||
/* At this point we have a potential decoder, but we might not need it
|
/* At this point we have a potential decoder, but we might not need it
|
||||||
* if it doesn't match the output caps */
|
* if it doesn't match the output caps */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user