Changeset 83560 in webkit


Ignore:
Timestamp:
Apr 12, 2011 12:48:21 AM (13 years ago)
Author:
Philippe Normand
Message:

2011-04-11 Philippe Normand <pnormand@igalia.com>

Reviewed by Martin Robinson.

[GStreamer] warnings in media/video-set-rate-from-pause.html
https://bugs.webkit.org/show_bug.cgi?id=58220

  • platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp: (WebCore::MediaPlayerPrivateGStreamer::setRate): Pause the pipeline if new rate is zero, like advised in the GStreamer documentation of gst_event_new_seek().
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r83558 r83560  
     12011-04-11  Philippe Normand  <pnormand@igalia.com>
     2
     3        Reviewed by Martin Robinson.
     4
     5        [GStreamer] warnings in media/video-set-rate-from-pause.html
     6        https://bugs.webkit.org/show_bug.cgi?id=58220
     7
     8        * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
     9        (WebCore::MediaPlayerPrivateGStreamer::setRate): Pause the
     10        pipeline if new rate is zero, like advised in the GStreamer
     11        documentation of gst_event_new_seek().
     12
    1132011-04-11  Vangelis Kokkevis  <vangelis@chromium.org>
    214
  • trunk/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp

    r81234 r83560  
    705705    m_playbackRate = rate;
    706706    m_changingRate = true;
     707
     708    if (!rate) {
     709        gst_element_set_state(m_playBin, GST_STATE_PAUSED);
     710        return;
     711    }
     712
    707713    float currentPosition = static_cast<float>(playbackPosition(m_playBin) * GST_SECOND);
    708714    GstSeekFlags flags = (GstSeekFlags)(GST_SEEK_FLAG_FLUSH);
     
    711717
    712718    LOG_VERBOSE(Media, "Set Rate to %f", rate);
    713     if (rate >= 0) {
     719    if (rate > 0) {
    714720        // Mute the sound if the playback rate is too extreme.
    715721        // TODO: in other cases we should perform pitch adjustments.
Note: See TracChangeset for help on using the changeset viewer.