From: Diego Pino Garcia Date: Mon, 6 Feb 2023 11:14:55 +0000 (+0000) Subject: Fix build failure with older versions of GStreamer X-Git-Tag: archive/raspbian/2.38.4-2_deb10u1+rpi1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=040aa96ea23b9c679d4c802f5fe37cfaf8cbb43d;p=webkit2gtk.git Fix build failure with older versions of GStreamer Origin: https://commits.webkit.org/256481@main =================================================================== Gbp-Pq: Name fix-gst-build.patch --- diff --git a/Source/WebCore/platform/graphics/gstreamer/GStreamerCommon.cpp b/Source/WebCore/platform/graphics/gstreamer/GStreamerCommon.cpp index 8c690511e5..1a55a8c75f 100644 --- a/Source/WebCore/platform/graphics/gstreamer/GStreamerCommon.cpp +++ b/Source/WebCore/platform/graphics/gstreamer/GStreamerCommon.cpp @@ -856,9 +856,11 @@ void fillVideoInfoColorimetryFromColorSpace(GstVideoInfo* info, const PlatformVi case PlatformVideoTransferCharacteristics::Bt709: GST_VIDEO_INFO_COLORIMETRY(info).transfer = GST_VIDEO_TRANSFER_BT709; break; +#if GST_CHECK_VERSION(1, 18, 0) case PlatformVideoTransferCharacteristics::Smpte170m: GST_VIDEO_INFO_COLORIMETRY(info).transfer = GST_VIDEO_TRANSFER_BT601; break; +#endif default: break; }