Skip to content

Commit 43c6bef

Browse files
committed
[GStreamer] gst_video_frame_map takes non-const pointers before 1.20
https://bugs.webkit.org/show_bug.cgi?id=290187 Reviewed by Adrian Perez de Castro. gst_video_frame_map was only updated to take immutable GstVideoInfo pointers from GStreamer 1.20 onwards. * Source/WebCore/platform/graphics/gstreamer/GStreamerCommon.cpp: (WebCore::GstMappedFrame::GstMappedFrame): Canonical link: https://commits.webkit.org/292584@main
1 parent d13ccff commit 43c6bef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Source/WebCore/platform/graphics/gstreamer/GStreamerCommon.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,8 @@ Ref<SharedBuffer> GstMappedOwnedBuffer::createSharedBuffer()
722722

723723
GstMappedFrame::GstMappedFrame(GstBuffer* buffer, const GstVideoInfo* info, GstMapFlags flags)
724724
{
725-
gst_video_frame_map(&m_frame, info, buffer, flags);
725+
// This cast can be removed once the GStreamer minimum version is raised to 1.20
726+
gst_video_frame_map(&m_frame, const_cast<GstVideoInfo*>(info), buffer, flags);
726727
}
727728

728729
GstMappedFrame::GstMappedFrame(const GRefPtr<GstSample>& sample, GstMapFlags flags)

0 commit comments

Comments
 (0)