decklink: Fixed decklinkvideosink auto format detection

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1994>
This commit is contained in:
Staz M 2021-01-29 02:09:05 -05:00 committed by GStreamer Merge Bot
parent fba807bead
commit 180ab8377f

View file

@ -666,7 +666,8 @@ gst_decklink_caps_get_pixel_format (GstCaps * caps, BMDPixelFormat * format)
}
f = vinfo.finfo->format;
return gst_decklink_type_from_video_format (f);
*format = gst_decklink_pixel_format_from_type(gst_decklink_type_from_video_format (f));
return TRUE;
}
static GstStructure *