Changeset 142391 in webkit


Ignore:
Timestamp:
Feb 10, 2013 2:00:29 AM (11 years ago)
Author:
Philippe Normand
Message:

[GStreamer] audio is muted when playback rate is between 0.8 and 2.0
https://bugs.webkit.org/show_bug.cgi?id=109362

Reviewed by Martin Robinson.

Don't mute sound if the audio pitch is preserved. If this is not
the case mute it if it's too extreme, as the HTML5 spec recommends.

  • platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:

(WebCore::MediaPlayerPrivateGStreamer::setRate):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r142385 r142391  
     12013-02-10  Philippe Normand  <pnormand@igalia.com>
     2
     3        [GStreamer] audio is muted when playback rate is between 0.8 and 2.0
     4        https://bugs.webkit.org/show_bug.cgi?id=109362
     5
     6        Reviewed by Martin Robinson.
     7
     8        Don't mute sound if the audio pitch is preserved. If this is not
     9        the case mute it if it's too extreme, as the HTML5 spec recommends.
     10
     11        * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
     12        (WebCore::MediaPlayerPrivateGStreamer::setRate):
     13
    1142013-02-09  Dominic Mazzoni  <dmazzoni@google.com>
    215
  • trunk/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp

    r142251 r142391  
    542542    LOG_MEDIA_MESSAGE("Set Rate to %f", rate);
    543543    if (rate > 0) {
    544         // Mute the sound if the playback rate is too extreme.
    545         // TODO: in other cases we should perform pitch adjustments.
    546         mute = (bool) (rate < 0.8 || rate > 2);
     544        // Mute the sound if the playback rate is too extreme and
     545        // audio pitch is not adjusted.
     546        mute = (!m_preservesPitch && (rate < 0.8 || rate > 2));
    547547        start = currentPosition;
    548548        end = GST_CLOCK_TIME_NONE;
Note: See TracChangeset for help on using the changeset viewer.