Changeset 228868 in webkit


Ignore:
Timestamp:
Feb 21, 2018 3:42:05 AM (6 years ago)
Author:
Philippe Normand
Message:

[GTK] Layout test media/track/track-in-band-duplicate-tracks-when-source-changes.html failing since r228617
https://bugs.webkit.org/show_bug.cgi?id=160131
<rdar://problem/35873985>

Reviewed by Michael Catanzaro.

  • platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:

(WebCore::MediaPlayerPrivateGStreamer::notifyPlayerOfText): We
can't assume the pad has a sticky event here like implemented in
InbandTextTrackPrivateGStreamer because it might be emitted after
the track was created. So fallback to a dummy stream ID like in
the Audio and Video tracks.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r228867 r228868  
     12018-02-20  Philippe Normand  <pnormand@igalia.com>
     2
     3        [GTK] Layout test media/track/track-in-band-duplicate-tracks-when-source-changes.html failing since r228617
     4        https://bugs.webkit.org/show_bug.cgi?id=160131
     5        <rdar://problem/35873985>
     6
     7        Reviewed by Michael Catanzaro.
     8
     9        * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
     10        (WebCore::MediaPlayerPrivateGStreamer::notifyPlayerOfText): We
     11        can't assume the pad has a sticky event here like implemented in
     12        InbandTextTrackPrivateGStreamer because it might be emitted after
     13        the track was created. So fallback to a dummy stream ID like in
     14        the Audio and Video tracks.
     15
    1162018-02-20  Sergio Villar Senin  <svillar@igalia.com>
    217
  • trunk/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp

    r228641 r228868  
    925925    g_object_get(element, "n-text", &numTracks, nullptr);
    926926
     927    GST_INFO("Media has %d text tracks", numTracks);
     928
    927929    if (useMediaSource) {
    928930        GST_DEBUG("Tracks managed by source element. Bailing out now.");
     
    936938        ASSERT(pad);
    937939
    938         GRefPtr<GstEvent> event = adoptGRef(gst_pad_get_sticky_event(pad.get(), GST_EVENT_STREAM_START, 0));
    939         if (!event)
    940             continue;
    941 
    942         const char* streamId;
    943         gst_event_parse_stream_start(event.get(), &streamId);
     940        // We can't assume the pad has a sticky event here like implemented in
     941        // InbandTextTrackPrivateGStreamer because it might be emitted after the
     942        // track was created. So fallback to a dummy stream ID like in the Audio
     943        // and Video tracks.
     944        String streamId = "T" + String::number(i);
    944945
    945946        validTextStreams.append(streamId);
Note: See TracChangeset for help on using the changeset viewer.