Changeset 147206 in webkit


Ignore:
Timestamp:
Mar 29, 2013 4:28:54 AM (11 years ago)
Author:
Philippe Normand
Message:

[GStreamer] playback gets bumpy sometimes when on-disk buffering is slow
https://bugs.webkit.org/show_bug.cgi?id=113512

Reviewed by Martin Robinson.

When the HTTP source element is slow downloading data for on-disk
buffering the playback position might reach an unbuffered region
and have bad consequences, pausing the pipeline beforehand
prevents this case to happen.

  • platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:

(WebCore::MediaPlayerPrivateGStreamer::processBufferingStats):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r147205 r147206  
     12013-03-28  Philippe Normand  <pnormand@igalia.com>
     2
     3        [GStreamer] playback gets bumpy sometimes when on-disk buffering is slow
     4        https://bugs.webkit.org/show_bug.cgi?id=113512
     5
     6        Reviewed by Martin Robinson.
     7
     8        When the HTTP source element is slow downloading data for on-disk
     9        buffering the playback position might reach an unbuffered region
     10        and have bad consequences, pausing the pipeline beforehand
     11        prevents this case to happen.
     12
     13        * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
     14        (WebCore::MediaPlayerPrivateGStreamer::processBufferingStats):
     15
    1162013-03-29  Keishi Hattori  <keishi@webkit.org>
    217
  • trunk/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp

    r146770 r147206  
    802802
    803803        m_fillTimer.startRepeating(0.2);
     804    }
     805
     806    if (!m_paused && m_bufferingPercentage < 100) {
     807        LOG_MEDIA_MESSAGE("[Buffering] Download in progress, pausing pipeline.");
     808        gst_element_set_state(m_playBin.get(), GST_STATE_PAUSED);
    804809    }
    805810}
Note: See TracChangeset for help on using the changeset viewer.