mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
playback: Only do a subset filtering for the factories if we have fixed caps
Otherwise we're plugging a parser/converter currently and have unfixed caps.
This commit is contained in:
parent
062246fc6e
commit
d802c7395a
3 changed files with 3 additions and 3 deletions
|
@ -1373,7 +1373,7 @@ gst_decode_bin_autoplug_factories (GstElement * element, GstPad * pad,
|
|||
gst_decode_bin_update_factories_list (dbin);
|
||||
list =
|
||||
gst_element_factory_list_filter (dbin->factories, caps, GST_PAD_SINK,
|
||||
TRUE);
|
||||
gst_caps_is_fixed (caps));
|
||||
g_mutex_unlock (&dbin->factories_lock);
|
||||
|
||||
result = g_value_array_new (g_list_length (list));
|
||||
|
|
|
@ -3599,7 +3599,7 @@ autoplug_factories_cb (GstElement * decodebin, GstPad * pad,
|
|||
gst_play_bin_update_elements_list (playbin);
|
||||
factory_list =
|
||||
gst_element_factory_list_filter (playbin->elements, caps, GST_PAD_SINK,
|
||||
TRUE);
|
||||
gst_caps_is_fixed (caps));
|
||||
g_mutex_unlock (&playbin->elements_lock);
|
||||
|
||||
GST_DEBUG_OBJECT (playbin, "found factories %p", factory_list);
|
||||
|
|
|
@ -334,7 +334,7 @@ gst_uri_decode_bin_autoplug_factories (GstElement * element, GstPad * pad,
|
|||
gst_uri_decode_bin_update_factories_list (dec);
|
||||
list =
|
||||
gst_element_factory_list_filter (dec->factories, caps, GST_PAD_SINK,
|
||||
TRUE);
|
||||
gst_caps_is_fixed (caps));
|
||||
g_mutex_unlock (&dec->factories_lock);
|
||||
|
||||
result = g_value_array_new (g_list_length (list));
|
||||
|
|
Loading…
Reference in a new issue