Commit 32a49538 authored by Edward Hervey's avatar Edward Hervey 🤘 Committed by Edward Hervey

decodebin3: Properly handle caps query with no filter

There's no guarantee that upstream elements will do queries with specified
filter caps. If that's the case, just return GST_CAPS_ANY

Part-of: <gstreamer/gst-plugins-base!933>
parent 78ccc551
...@@ -145,6 +145,10 @@ get_parser_caps_filter (GstDecodebin3 * dbin, GstCaps * caps) ...@@ -145,6 +145,10 @@ get_parser_caps_filter (GstDecodebin3 * dbin, GstCaps * caps)
GList *tmp; GList *tmp;
GstCaps *filter_caps = gst_caps_new_empty (); GstCaps *filter_caps = gst_caps_new_empty ();
/* If no filter was provided, it can handle anything */
if (!caps || gst_caps_is_any (caps))
return gst_caps_new_any ();
g_mutex_lock (&dbin->factories_lock); g_mutex_lock (&dbin->factories_lock);
gst_decode_bin_update_factories_list (dbin); gst_decode_bin_update_factories_list (dbin);
for (tmp = dbin->decoder_factories; tmp; tmp = tmp->next) { for (tmp = dbin->decoder_factories; tmp; tmp = tmp->next) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment