Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[GStreamer] Push smaller buffers from HTTP source
https://bugs.webkit.org/show_bug.cgi?id=182829 Reviewed by Philippe Normand. Split the received buffer into smaller buffers of a size consistent with the basesrc (4KiB). It is important not to push large buffers into the appsrc (where large is relative to the appsrc's configured byte size). If large buffers are pushed, then when they are internally dequeued by the appsrc, the buffering percentage can dramatically plummet due to a large amount of bytes being removed after a push. This can in turn trick the media player into thinking it needs to buffer, and then issuing a spurious set of playing->paused then paused->playing transitions, which by the time the buffering logic completes, data are already available. * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp: (CachedResourceStreamingClient::dataReceived): Canonical link: https://commits.webkit.org/198661@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@228603 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
2 changed files
with
56 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters