Changeset 220461 in webkit


Ignore:
Timestamp:
Aug 9, 2017 10:23:16 AM (7 years ago)
Author:
commit-queue@webkit.org
Message:

[GStreamer][MSE] Add missing lock around getStreamByTrackId
https://bugs.webkit.org/show_bug.cgi?id=175323

Patch by Charlie Turner <cturner@igalia.com> on 2017-08-09
Reviewed by Xabier Rodriguez-Calvar.

Covered by existing tests.

  • platform/graphics/gstreamer/mse/PlaybackPipeline.cpp:

(WebCore::PlaybackPipeline::enqueueSample): Ensure the media source
lock is taken before modifiying the track queues indirectly via the
iterator use in getTrackId.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r220459 r220461  
     12017-08-09  Charlie Turner  <cturner@igalia.com>
     2
     3        [GStreamer][MSE] Add missing lock around getStreamByTrackId
     4        https://bugs.webkit.org/show_bug.cgi?id=175323
     5
     6        Reviewed by Xabier Rodriguez-Calvar.
     7
     8        Covered by existing tests.
     9
     10        * platform/graphics/gstreamer/mse/PlaybackPipeline.cpp:
     11        (WebCore::PlaybackPipeline::enqueueSample): Ensure the media source
     12        lock is taken before modifiying the track queues indirectly via the
     13        iterator use in getTrackId.
     14
    1152017-08-09  Daniel Bates  <dabates@apple.com>
    216
  • trunk/Source/WebCore/platform/graphics/gstreamer/mse/PlaybackPipeline.cpp

    r216702 r220461  
    489489        GST_TIME_ARGS(WebCore::toGstClockTime(mediaSample->duration().toDouble())));
    490490
     491    WTF::GMutexLocker<GMutex> locker(*GST_OBJECT_GET_LOCK(m_webKitMediaSrc.get()));
    491492    Stream* stream = getStreamByTrackId(m_webKitMediaSrc.get(), trackId);
    492493
Note: See TracChangeset for help on using the changeset viewer.