diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2020-10-30 10:02:32 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2020-10-30 10:02:32 +0200 |
commit | c6aca271a1ac4ff10b0be08c779782f6879ba770 (patch) | |
tree | 6c4856421c5253d38c221d361325f51eaccce3a2 /sys/decklink | |
parent | d25be0d16e25799a9a08990601ab85241231adac (diff) | |
download | gstreamer-plugins-bad-c6aca271a1ac4ff10b0be08c779782f6879ba770.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/1737>
Diffstat (limited to 'sys/decklink')
-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 5637b1018..359912695 100644 --- a/sys/decklink/gstdecklink.cpp +++ b/sys/decklink/gstdecklink.cpp @@ -425,7 +425,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]; } |