decklinkvideosink: Fix selection of > PAL widescreen modes

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2601>
This commit is contained in:
Sebastian Dröge 2022-06-15 10:07:26 +03:00 committed by GStreamer Marge Bot
parent 428b66cfae
commit 87230db55c

View file

@ -515,7 +515,7 @@ static const struct
const GstDecklinkMode *
gst_decklink_get_mode (GstDecklinkModeEnum e)
{
if (e < GST_DECKLINK_MODE_AUTO || e > GST_DECKLINK_MODE_PAL_P_WIDESCREEN)
if (e < GST_DECKLINK_MODE_AUTO || e > GST_DECKLINK_MODE_8Kp60)
return NULL;
return &modes[e];
}