Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r236409 - [MSE][GStreamer] Pull demuxed samples in batches
https://bugs.webkit.org/show_bug.cgi?id=189871 Reviewed by Xabier Rodriguez-Calvar. After this patch, only the notifications of "new samples available" (appsink-new-sample bus messages) travel from the streaming thread to the main thread through the bus and the main thread is the responsible of pulling as many samples as it can from appsink. Before, the samples were pulled from appsink in the non-main thread and traveled to the main thread through the bus one by one. This reduces drastically the amount of context switches and waiting time in the streaming thread, resulting in a noticeable performance improvement. This fixes stutter while loading YouTube videos. * platform/graphics/gstreamer/MediaSampleGStreamer.cpp: (WebCore::MediaSampleGStreamer::MediaSampleGStreamer): * platform/graphics/gstreamer/mse/AppendPipeline.cpp: (WebCore::AppendPipeline::AppendPipeline): (WebCore::AppendPipeline::~AppendPipeline): (WebCore::AppendPipeline::clearPlayerPrivate): (WebCore::AppendPipeline::handleApplicationMessage): (WebCore::AppendPipeline::appsinkNewSample): (WebCore::AppendPipeline::consumeAppSinkAvailableSamples): (WebCore::AppendPipeline::resetPipeline): (WebCore::AppendPipeline::handleNewAppsinkSample): * platform/graphics/gstreamer/mse/AppendPipeline.h:
- Loading branch information
Showing
4 changed files
with
112 additions
and
90 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
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