diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2020-10-30 10:02:32 +0200 |
---|---|---|
committer | GStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2020-10-30 14:17:58 +0000 |
commit | 67352cc9a5b64b3600750e223e5241cafdee86fd (patch) | |
tree | 532e650b72c7c0918290ca2831db789410a14daa | |
parent | f3ec6dfa37a25d335882467f2671f9fbdacf0727 (diff) | |
download | gstreamer-plugins-bad-67352cc9a5b64b3600750e223e5241cafdee86fd.tar.gz |
decklink: Update enum value bounds check in gst_decklink_get_mode()
The widescreen modes moved after GST_DECKLINK_MODE_2160p60 and using
them now would cause an assertion. This is a regression from
309f6187fef890c7ffa49305f38e89beac3b1423.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1740>
-rw-r--r-- | sys/decklink/gstdecklink.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/decklink/gstdecklink.cpp b/sys/decklink/gstdecklink.cpp index 7742aa437..ef59b9e83 100644 --- a/sys/decklink/gstdecklink.cpp +++ b/sys/decklink/gstdecklink.cpp @@ -400,7 +400,7 @@ static const struct const GstDecklinkMode * gst_decklink_get_mode (GstDecklinkModeEnum e) { - if (e < GST_DECKLINK_MODE_AUTO || e > GST_DECKLINK_MODE_2160p60) + if (e < GST_DECKLINK_MODE_AUTO || e > GST_DECKLINK_MODE_PAL_P_WIDESCREEN) return NULL; return &modes[e]; } |