Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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.lampe@gmail.com> See: WebPlatformForEmbedded/WPEWebKit#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
- Loading branch information