Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 738525821b033b3a945e32e3a9c4255af0af595a
      
https://github.com/WebKit/WebKit/commit/738525821b033b3a945e32e3a9c4255af0af595a
  Author: Vivienne Watermeier <vwaterme...@igalia.com>
  Date:   2022-11-28 (Mon, 28 Nov 2022)

  Changed paths:
    M Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp

  Log Message:
  -----------
  [GStreamer] Fix readyState calculations
https://bugs.webkit.org/show_bug.cgi?id=248217

Reviewed by Philippe Normand.

On some platforms, the audio sink is acting as a fake sink while the decoder 
fetches data
from the pipeline and transfers it to the SoC drivers, even in READY and PAUSED 
states,
meaning we cannot rely on buffering messages anymore.

However, on that platform the audio sinks implements buffering queries, that 
are currently
issued to the entire pipeline, which on some platforms may yield misleading 
results
if some random element implements buffering queries and receives that query 
first.

Thus this patch first queries the audio sink, before trying the video sink and 
finally
the pipeline itself.

Original author: Pawel Lampe <pawel.la...@gmail.com>
See: https://github.com/WebPlatformForEmbedded/WPEWebKit/pull/975

* Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
(WebCore::MediaPlayerPrivateGStreamer::updateStates): Send buffering query to 
audio/video sinks first

Canonical link: https://commits.webkit.org/257066@main


_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to