Changeset 55962 in webkit


Ignore:
Timestamp:
Mar 13, 2010 5:43:33 AM (14 years ago)
Author:
krit@webkit.org
Message:

2010-03-13 Dirk Schulze <krit@webkit.org>

No review, rolling out r55927.
http://trac.webkit.org/changeset/55927
https://bugs.webkit.org/show_bug.cgi?id=35793

Breaks Gtk build bots.

  • platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp: (WebCore::MediaPlayerPrivate::MediaPlayerPrivate): (WebCore::MediaPlayerPrivate::load): (WebCore::MediaPlayerPrivate::setPreload):
  • platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h:
Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r55949 r55962  
     12010-03-13  Dirk Schulze  <krit@webkit.org>
     2
     3        No review, rolling out r55927.
     4        http://trac.webkit.org/changeset/55927
     5        https://bugs.webkit.org/show_bug.cgi?id=35793
     6
     7        Breaks Gtk build bots.
     8
     9        * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
     10        (WebCore::MediaPlayerPrivate::MediaPlayerPrivate):
     11        (WebCore::MediaPlayerPrivate::load):
     12        (WebCore::MediaPlayerPrivate::setPreload):
     13        * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h:
     14
    1152010-03-12  Dirk Schulze  <krit@webkit.org>
    216
  • trunk/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp

    r55927 r55962  
    315315    , m_maxTimeLoaded(0)
    316316    , m_bufferingPercentage(0)
    317     , m_preload(MediaPlayer::Auto)
    318     , m_delayingLoad(false)
    319317{
    320318    if (doGstInit())
     
    371369void MediaPlayerPrivate::load(const String& url)
    372370{
    373     g_object_set(m_playBin, "uri", url.utf8().data(), NULL);
    374 
    375     if (m_preload == MediaPlayer::None) {
    376         m_delayingLoad = true;
    377         return;
    378     }
    379 
    380     commitLoad();
    381 }
    382 
    383 void MediaPlayerPrivate::commitLoad()
    384 {
    385     // GStreamer needs to have the pipeline set to a paused state to
    386     // start providing anything useful.
    387     gst_element_set_state(m_playBin, GST_STATE_PAUSED);
    388 
    389371    LOG_VERBOSE(Media, "Load %s", url.utf8().data());
    390372    if (m_networkState != MediaPlayer::Loading) {
     
    396378        m_player->readyStateChanged();
    397379    }
     380
     381    g_object_set(m_playBin, "uri", url.utf8().data(), NULL);
     382
     383    // GStreamer needs to have the pipeline set to a paused state to
     384    // start providing anything useful.
     385    gst_element_set_state(m_playBin, GST_STATE_PAUSED);
    398386}
    399387
     
    415403    }
    416404    return true;
    417 }
    418 
    419 void MediaPlayerPrivate::prepareToPlay()
    420 {
    421     if (m_delayingLoad) {
    422         m_delayingLoad = false;
    423         commitLoad();
    424     }
    425405}
    426406
     
    13861366    ASSERT(m_playBin);
    13871367
    1388     m_preload = preload;
    1389 
    13901368    GstPlayFlags flags;
    13911369    g_object_get(m_playBin, "flags", &flags, NULL);
     
    13941372    else
    13951373        g_object_set(m_playBin, "flags", flags | GST_PLAY_FLAG_DOWNLOAD, NULL);
    1396 
    1397     if (m_delayingLoad && m_preload != MediaPlayer::None) {
    1398         m_delayingLoad = false;
    1399         commitLoad();
    1400     }
    14011374}
    14021375
  • trunk/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h

    r55927 r55962  
    6464
    6565            void load(const String &url);
    66             void commitLoad();
    6766            void cancelLoad();
    6867            bool loadNextLocation();
    6968
    70             void prepareToPlay();
    7169            void play();
    7270            void pause();
     
    170168            float m_maxTimeLoaded;
    171169            int m_bufferingPercentage;
    172             MediaPlayer::Preload m_preload;
    173             bool m_delayingLoad;
    174170    };
    175171}
Note: See TracChangeset for help on using the changeset viewer.