From a509a1fd4014e23c8c18c3bd82f692a088d3b507 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Tue, 22 Oct 2024 13:18:58 +1100 Subject: [PATCH] decklinkvideosink: fix incorrect EOTF value Checking for mastering-display-info twice is incorrect. One of the checks should be for the content-light-level. Part-of: --- .../gst-plugins-bad/sys/decklink/gstdecklinkvideosink.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-bad/sys/decklink/gstdecklinkvideosink.cpp b/subprojects/gst-plugins-bad/sys/decklink/gstdecklinkvideosink.cpp index ff659558e1..b6618f5767 100644 --- a/subprojects/gst-plugins-bad/sys/decklink/gstdecklinkvideosink.cpp +++ b/subprojects/gst-plugins-bad/sys/decklink/gstdecklinkvideosink.cpp @@ -434,7 +434,7 @@ public: case GST_VIDEO_TRANSFER_BT601: case GST_VIDEO_TRANSFER_BT709: case GST_VIDEO_TRANSFER_BT2020_10: - if (have_mastering_info && have_mastering_info) + if (have_mastering_info && have_light_level) *value = 1; else *value = 0;