Bug 208046 - [GStreamer][WPE] Add GstGLMemoryEGL support for the video-plane-display
Summary: [GStreamer][WPE] Add GstGLMemoryEGL support for the video-plane-display
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Platform (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Philippe Normand
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-02-21 02:05 PST by Philippe Normand
Modified: 2020-02-24 01:15 PST (History)
13 users (show)

See Also:


Attachments
Patch (4.05 KB, patch)
2020-02-21 02:09 PST, Philippe Normand
no flags Details | Formatted Diff | Diff
Patch (4.06 KB, patch)
2020-02-21 03:23 PST, Philippe Normand
zan: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Normand 2020-02-21 02:05:55 PST
Also ensure the stride is valid.
Comment 1 Philippe Normand 2020-02-21 02:09:44 PST
Created attachment 391389 [details]
Patch
Comment 2 Philippe Normand 2020-02-21 03:23:50 PST
Created attachment 391390 [details]
Patch
Comment 3 Zan Dobersek 2020-02-21 03:43:37 PST
Comment on attachment 391390 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=391390&action=review

> Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:224
> +        if (hasDMABuf() && (m_dmabufStride == -1)) {

Extra parentheses not necessary, but OK.

> Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:226
> +            m_isMapped = gst_video_frame_map(&m_videoFrame, &videoInfo, m_buffer.get(), GST_MAP_READ);
> +            RELEASE_ASSERT(m_isMapped);

Is this really a given? or can it fail in some obscure fashion, now or in the future?
Comment 4 Philippe Normand 2020-02-24 01:10:45 PST
(In reply to Zan Dobersek from comment #3)
> > Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:226
> > +            m_isMapped = gst_video_frame_map(&m_videoFrame, &videoInfo, m_buffer.get(), GST_MAP_READ);
> > +            RELEASE_ASSERT(m_isMapped);
> 
> Is this really a given? or can it fail in some obscure fashion, now or in
> the future?

It can fail indeed, especially if no video meta is attached to the buffer. I'll relax this ASSERT.
Comment 5 Philippe Normand 2020-02-24 01:14:08 PST
Committed r257202: <https://trac.webkit.org/changeset/257202>
Comment 6 Radar WebKit Bug Importer 2020-02-24 01:15:16 PST
<rdar://problem/59718023>