Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MSE][GStreamer] Insert parser elements in AppendPipeline when demuxi…
…ng opus or Vorbis https://bugs.webkit.org/show_bug.cgi?id=178076 Patch by Alicia Boya García <aboya@igalia.com> on 2017-10-17 Reviewed by Xabier Rodriguez-Calvar. YouTube does not include durations in the WebM container for files containing Opus audio, so we need to read them from the contained stream. Fortunately, GStreamer has an element to do that: opusparse. The same thing happens with Vorbis contained in WebM files from the W3C tests, which should also be fixed by the GStreamer element vorbisparse. This patch adds an opusparse or vorbisparse element to the AppendPipeline at the sinkpad of the demuxer when either is found. Tests: updated expectations. Source/WebCore: * platform/graphics/gstreamer/mse/AppendPipeline.cpp: (WebCore::AppendPipeline::appsinkNewSample): (WebCore::createOptionalParserForFormat): (WebCore::AppendPipeline::connectDemuxerSrcPadToAppsinkFromAnyThread): (WebCore::AppendPipeline::disconnectDemuxerSrcPadFromAppsinkFromAnyThread): * platform/graphics/gstreamer/mse/AppendPipeline.h: * platform/graphics/gstreamer/mse/GStreamerMediaSample.cpp: (WebCore::GStreamerMediaSample::GStreamerMediaSample): * platform/graphics/gstreamer/mse/PlaybackPipeline.cpp: (WebCore::PlaybackPipeline::attachTrack): LayoutTests: * platform/gtk/TestExpectations: Canonical link: https://commits.webkit.org/194607@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@223505 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
2f0d88c
commit 97a23b7
Showing
7 changed files
with
135 additions
and
36 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
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