mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-30 02:58:24 +00:00
playbin: Check in autoplug_continue against the subtitle factory caps correctly
6a2f017bfa
changed it to check the subtitle
factory caps if there is a text-sink but we fail to get its sinkpad. What
actually should be done here is to use the factory caps if there is no
text-sink at all.
https://bugzilla.gnome.org/show_bug.cgi?id=750785
This commit is contained in:
parent
ca864ce46e
commit
9c47e7d5e6
1 changed files with 4 additions and 4 deletions
|
@ -4423,13 +4423,13 @@ autoplug_continue_cb (GstElement * element, GstPad * pad, GstCaps * caps,
|
|||
ret = !gst_pad_query_accept_caps (sinkpad, caps);
|
||||
gst_caps_unref (sinkcaps);
|
||||
gst_object_unref (sinkpad);
|
||||
} else {
|
||||
GstCaps *subcaps = gst_subtitle_overlay_create_factory_caps ();
|
||||
ret = !gst_caps_is_subset (caps, subcaps);
|
||||
gst_caps_unref (subcaps);
|
||||
}
|
||||
if (activated_sink)
|
||||
gst_element_set_state (group->text_sink, GST_STATE_NULL);
|
||||
} else {
|
||||
GstCaps *subcaps = gst_subtitle_overlay_create_factory_caps ();
|
||||
ret = !gst_caps_is_subset (caps, subcaps);
|
||||
gst_caps_unref (subcaps);
|
||||
}
|
||||
/* If autoplugging can stop don't do additional checks */
|
||||
if (!ret)
|
||||
|
|
Loading…
Reference in a new issue