-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[GStreamer] Make GstMappedFrame assert when it is not initialized #25007
Conversation
EWS run on previous version of this PR (hash ba445ad) |
Source/WebCore/platform/graphics/gstreamer/ImageGStreamerSkia.cpp
Outdated
Show resolved
Hide resolved
EWS run on previous version of this PR (hash 0f1b9ec) |
EWS run on previous version of this PR (hash 72fe8e7) |
Source/WebCore/platform/graphics/gstreamer/VideoFrameGStreamer.cpp
Outdated
Show resolved
Hide resolved
Source/WebCore/platform/mediastream/libwebrtc/gstreamer/GStreamerVideoFrameLibWebRTC.cpp
Outdated
Show resolved
Hide resolved
EWS run on previous version of this PR (hash d95fac8) |
EWS run on previous version of this PR (hash 3ed911a) |
EWS run on current version of this PR (hash 2cdc7c7) |
https://bugs.webkit.org/show_bug.cgi?id=269980 Reviewed by Carlos Garcia Campos. This way we can align the implementation of GstMappedFrame with GstMappedBuffer and assert when its data is accessed but it was not properly mapped at initialization. Even when now it is properly protected at members access, additional checks were added in some places where its instantiation was not being checked. A fly-by improvement is making the constructor taking GRefPtr<GstSample> to take const & to avoid unnecessary ref/unref. * Source/WebCore/platform/graphics/gstreamer/GStreamerCommon.h: (WebCore::GstMappedFrame::GstMappedFrame): (WebCore::GstMappedFrame::get): (WebCore::GstMappedFrame::ComponentData const): (WebCore::GstMappedFrame::ComponentStride const): (WebCore::GstMappedFrame::info): (WebCore::GstMappedFrame::width const): (WebCore::GstMappedFrame::height const): (WebCore::GstMappedFrame::format const): (WebCore::GstMappedFrame::planeData const): (WebCore::GstMappedFrame::planeStride const): (WebCore::GstMappedFrame::isValid const): (WebCore::GstMappedFrame::operator! const): * Source/WebCore/platform/graphics/gstreamer/VideoFrameGStreamer.cpp: (WebCore::VideoFrame::copyTo): * Source/WebCore/platform/mediastream/libwebrtc/gstreamer/GStreamerVideoFrameLibWebRTC.cpp: (WebCore::GStreamerVideoFrameLibWebRTC::ToI420): Canonical link: https://commits.webkit.org/275320@main
2cdc7c7
to
8ce9ffa
Compare
Committed 275320@main (8ce9ffa): https://commits.webkit.org/275320@main Reviewed commits have been landed. Closing PR #25007 and removing active labels. |
8ce9ffa
2cdc7c7
π§ͺ wpe-wk2π§ͺ api-wpeπ§ͺ api-iosπ§ͺ gtk-wk2π§ͺ mac-AS-debug-wk2