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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7742>
This commit is contained in:
Matthew Waters 2024-10-22 13:18:58 +11:00 committed by GStreamer Marge Bot
parent 30c6f2c163
commit a509a1fd40

View file

@ -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;