Changeset 203924 in webkit


Ignore:
Timestamp:
Jul 29, 2016 4:41:54 PM (8 years ago)
Author:
Alan Bujtas
Message:

Do not set negative rate on AVSampleBufferRenderSynchronizer.
https://bugs.webkit.org/show_bug.cgi?id=160326
<rdar://problem/27355214>

Reviewed by Eric Carlson.

Source/WebCore:

Test: http/tests/media/media-source/mediasource-play-then-seek-back-with-remote-control.html

  • platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm:

(WebCore::MediaPlayerPrivateMediaSourceAVFObjC::setRateDouble):

LayoutTests:

Negative rate is not supported at the moment.

  • http/tests/media/media-source/mediasource-play-then-seek-back-with-remote-control-expected.txt: Added.
  • http/tests/media/media-source/mediasource-play-then-seek-back-with-remote-control.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r203922 r203924  
     12016-07-29  Zalan Bujtas  <zalan@apple.com>
     2
     3        Do not set negative rate on AVSampleBufferRenderSynchronizer.
     4        https://bugs.webkit.org/show_bug.cgi?id=160326
     5        <rdar://problem/27355214>
     6
     7        Reviewed by Eric Carlson.
     8
     9        Negative rate is not supported at the moment.
     10
     11        * http/tests/media/media-source/mediasource-play-then-seek-back-with-remote-control-expected.txt: Added.
     12        * http/tests/media/media-source/mediasource-play-then-seek-back-with-remote-control.html: Added.
     13
    1142016-07-29  Myles C. Maxfield  <mmaxfield@apple.com>
    215
  • trunk/Source/WebCore/ChangeLog

    r203916 r203924  
     12016-07-29  Zalan Bujtas  <zalan@apple.com>
     2
     3        Do not set negative rate on AVSampleBufferRenderSynchronizer.
     4        https://bugs.webkit.org/show_bug.cgi?id=160326
     5        <rdar://problem/27355214>
     6
     7        Reviewed by Eric Carlson.
     8
     9        Test: http/tests/media/media-source/mediasource-play-then-seek-back-with-remote-control.html
     10
     11        * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm:
     12        (WebCore::MediaPlayerPrivateMediaSourceAVFObjC::setRateDouble):
     13
    1142016-07-29  Myles C. Maxfield  <mmaxfield@apple.com>
    215
  • trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm

    r202429 r203924  
    474474void MediaPlayerPrivateMediaSourceAVFObjC::setRateDouble(double rate)
    475475{
    476     m_rate = rate;
     476    // AVSampleBufferRenderSynchronizer does not support negative rate yet.
     477    m_rate = std::max<double>(rate, 0);
    477478    if (shouldBePlaying())
    478479        [m_synchronizer setRate:m_rate];
Note: See TracChangeset for help on using the changeset viewer.