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] Fix abort in gst_sample_get_info()
https://bugs.webkit.org/show_bug.cgi?id=190135 Reviewed by Philippe Normand. A flush can occur before any frame has finished decoding -- especially in tests, where actions on the player often occur in quick succession. Therefore, the code must not assume by the time a flush occurs any frame has reached the sink. This patch fixes a case when such wrong assumption was causing gst_sample_get_info() to abort (crashing WebKit). * platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp: (WebCore::MediaPlayerPrivateGStreamerBase::flushCurrentBuffer): (WebCore::MediaPlayerPrivateGStreamerBase::createGLAppSink): Canonical link: https://commits.webkit.org/205097@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@236668 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
2 changed files
with
31 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