haikuwebkit/LayoutTests/platform/glib
Alicia Boya Garcia 569fdc337c [MSE][GStreamer] Implement multi-track support
https://bugs.webkit.org/show_bug.cgi?id=229072

Reviewed by Xabier Rodriguez-Calvar.

Source/WebCore:

This patch adds support for SourceBuffer having more than one track in
the GStreamer port.

This fixes the following LayoutTests:

imported/w3c/web-platform-tests/media-source/mediasource-activesourcebuffers.html
media/media-source/media-source-has-audio-video.html
media/media-source/only-bcp47-language-tags-accepted-as-valid.html

* platform/graphics/gstreamer/GStreamerCommon.h:
(GstIteratorAdaptor::GstIteratorAdaptor):
(GstIteratorAdaptor::iterator::iterator):
(GstIteratorAdaptor::iterator::operator*):
(GstIteratorAdaptor::iterator::operator++):
(GstIteratorAdaptor::iterator::operator==):
(GstIteratorAdaptor::iterator::operator!=):
(GstIteratorAdaptor::begin):
(GstIteratorAdaptor::end):
* platform/graphics/gstreamer/mse/AppendPipeline.cpp:
(WebCore::AppendPipeline::AppendPipeline):
(WebCore::AppendPipeline::~AppendPipeline):
(WebCore::AppendPipeline::parseDemuxerSrcPadCaps):
(WebCore::AppendPipeline::appsinkCapsChanged):
(WebCore::AppendPipeline::handleEndOfAppend):
(WebCore::AppendPipeline::appsinkNewSample):
(WebCore::AppendPipeline::didReceiveInitializationSegment):
(WebCore::AppendPipeline::consumeAppsinksAvailableSamples):
(WebCore::AppendPipeline::resetParserState):
(WebCore::AppendPipeline::handleAppsinkNewSampleFromStreamingThread):
(WebCore::createOptionalParserForFormat):
(WebCore::AppendPipeline::generateTrackId):
(WebCore::AppendPipeline::tryCreateTrackFromPad):
(WebCore::AppendPipeline::tryMatchPadToExistingTrack):
(WebCore::AppendPipeline::linkPadWithTrack):
(WebCore::AppendPipeline::makeWebKitTrack):
(WebCore::AppendPipeline::Track::initializeElements):
(WebCore::AppendPipeline::hookTrackEvents):
(WebCore::AppendPipeline::streamTypeToString):
(WebCore::AppendPipeline::id): Deleted.
(WebCore::AppendPipeline::trackId): Deleted.
(WebCore::AppendPipeline::consumeAppsinkAvailableSamples): Deleted.
(WebCore::AppendPipeline::connectDemuxerSrcPadToAppsinkFromStreamingThread): Deleted.
(WebCore::AppendPipeline::connectDemuxerSrcPadToAppsink): Deleted.
(WebCore::AppendPipeline::disconnectDemuxerSrcPadFromAppsinkFromAnyThread): Deleted.
* platform/graphics/gstreamer/mse/AppendPipeline.h:
(WebCore::AppendPipeline::sourceBufferPrivate):
(WebCore::AppendPipeline::Track::Track):
(WebCore::AppendPipeline::appsrc):
(WebCore::AppendPipeline::appsinkCaps): Deleted.
(WebCore::AppendPipeline::track): Deleted.
(WebCore::AppendPipeline::appsink): Deleted.
(WebCore::AppendPipeline::demuxerSrcPadCaps): Deleted.
* platform/graphics/gstreamer/mse/MediaPlayerPrivateGStreamerMSE.cpp:
(WebCore::MediaPlayerPrivateGStreamerMSE::setInitialVideoSize):
(WebCore::MediaPlayerPrivateGStreamerMSE::trackDetected): Deleted.
* platform/graphics/gstreamer/mse/MediaPlayerPrivateGStreamerMSE.h:

LayoutTests:

Update expectations and rebaseline one test is which the buffered
ranges have changed slightly due to the audio track previously
discarded now being parsed.

* platform/glib/TestExpectations:
* platform/glib/imported/w3c/web-platform-tests/media-source/mediasource-remove-expected.txt:


Canonical link: https://commits.webkit.org/240823@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@281440 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-08-23 13:22:29 +00:00
..
accessibility AX: Add ARIA role "image" as a new role, and leave "img" as a synonym 2021-07-12 16:14:28 +00:00
animations
compositing/repaint [GLIB] Update test expectations after r280742 2021-08-11 00:54:26 +00:00
crypto/subtle [GLIB] Update crypto test baselines after r280790 2021-08-10 16:56:35 +00:00
css1
css2.1 [WPE] Unreviewed test gardening. Emit specific baselines for WPE. 2021-04-15 03:31:12 +00:00
css3 [GTK] Test css3/filters/composited-during-animation-layertree.html is flaky since r214292 2021-06-11 12:00:15 +00:00
fast [GLIB] Unreviewed test gardening, move some expected results to GTK/WPE specific directories 2021-08-06 00:53:46 +00:00
fetch
fonts [GTK][WPE] Unreviewed test gardening. Update baselines after r268958. 2020-10-26 06:13:28 +00:00
fullscreen
http/tests [GTK][WPE] Gardening of tests after r279585 and 279705 2021-07-09 00:09:23 +00:00
imported/w3c/web-platform-tests [MSE][GStreamer] Implement multi-track support 2021-08-23 13:22:29 +00:00
inspector/page
js/dom
mathml
media [GLIB] Unreviewed test gardening, move some expected results to GTK/WPE specific directories 2021-08-06 00:53:46 +00:00
scrollbars
security [GLIB] Garden a few tests and unify some expectations 2021-05-18 04:26:45 +00:00
svg [GLIB] Test gardening, update baselines after r279987 2021-07-20 20:39:35 +00:00
tables [GLIB] Unreviewed test gardening, move some expected results to GTK/WPE specific directories 2021-08-06 00:53:46 +00:00
transforms [GLIB] Unreviewed test gardening. Update some SVG test baselines. 2021-05-25 14:00:29 +00:00
webaudio [GLIB] Gardening and updating baselines 2021-02-22 03:13:51 +00:00
webgl [GLIB] Gardening yet more consistent failures 2021-03-19 04:45:24 +00:00
TestExpectations [MSE][GStreamer] Implement multi-track support 2021-08-23 13:22:29 +00:00