Changeset 251544 in webkit


Ignore:
Timestamp:
Oct 24, 2019 9:39:56 AM (5 years ago)
Author:
aboya@igalia.com
Message:

[MSE][GStreamer] Reintroduce ensureGLVideoSinkContext() fix
https://bugs.webkit.org/show_bug.cgi?id=201401

Reviewed by Philippe Normand.

That patch was almost mechanically reverted temporarily along the rest
of the WebKitMediaSrc rework. In theory that should have been OK since
it was supposed to fix a regression of that patch... But actually
the bug was already causing problems before, the WebKitMediaSrc rework
just exposed a more common case.

It has been reported that the same bug arises when adding some CSS
styles to the <video> element, and the patch fixes the issue.

And the patch actually makes sense in any case... since without it
some perfectly valid state transitions are not covered!

So I'm reintroducing it.

  • platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:

(WebCore::MediaPlayerPrivateGStreamer::changePipelineState):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r251543 r251544  
     12019-10-24  Alicia Boya García  <aboya@igalia.com>
     2
     3        [MSE][GStreamer] Reintroduce ensureGLVideoSinkContext() fix
     4        https://bugs.webkit.org/show_bug.cgi?id=201401
     5
     6        Reviewed by Philippe Normand.
     7
     8        That patch was almost mechanically reverted temporarily along the rest
     9        of the WebKitMediaSrc rework. In theory that should have been OK since
     10        it was supposed to fix a regression of that patch... But actually
     11        the bug was already causing problems before, the WebKitMediaSrc rework
     12        just exposed a more common case.
     13
     14        It has been reported that the same bug arises when adding some CSS
     15        styles to the <video> element, and the patch fixes the issue.
     16
     17        And the patch actually makes sense in any case... since without it
     18        some perfectly valid state transitions are not covered!
     19
     20        So I'm reintroducing it.
     21
     22        * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
     23        (WebCore::MediaPlayerPrivateGStreamer::changePipelineState):
     24
    1252019-10-24  Antoine Quint  <graouts@apple.com>
    226
  • trunk/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp

    r251365 r251544  
    414414
    415415#if USE(GSTREAMER_GL)
    416     if (currentState == GST_STATE_READY && newState == GST_STATE_PAUSED)
     416    if (currentState <= GST_STATE_READY && newState >= GST_STATE_PAUSED)
    417417        ensureGLVideoSinkContext();
    418418#endif
Note: See TracChangeset for help on using the changeset viewer.