mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
decklinksink: Only intersect with the filter caps if there actually is a filter
This commit is contained in:
parent
ccd9a9cb89
commit
007807d149
1 changed files with 6 additions and 2 deletions
|
@ -565,8 +565,12 @@ gst_decklink_sink_videosink_query (GstPad * pad, GstObject * parent,
|
||||||
* should probably return the template caps instead */
|
* should probably return the template caps instead */
|
||||||
mode_caps = gst_decklink_mode_get_caps (decklinksink->mode);
|
mode_caps = gst_decklink_mode_get_caps (decklinksink->mode);
|
||||||
gst_query_parse_caps (query, &filter);
|
gst_query_parse_caps (query, &filter);
|
||||||
caps = gst_caps_intersect (mode_caps, filter);
|
if (filter) {
|
||||||
gst_caps_unref (mode_caps);
|
caps = gst_caps_intersect (mode_caps, filter);
|
||||||
|
gst_caps_unref (mode_caps);
|
||||||
|
} else {
|
||||||
|
caps = mode_caps;
|
||||||
|
}
|
||||||
gst_query_set_caps_result (query, caps);
|
gst_query_set_caps_result (query, caps);
|
||||||
gst_caps_unref (caps);
|
gst_caps_unref (caps);
|
||||||
res = TRUE;
|
res = TRUE;
|
||||||
|
|
Loading…
Reference in a new issue