Changeset 55962 in webkit
- Timestamp:
- Mar 13, 2010 5:43:33 AM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r55949 r55962 1 2010-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 1 15 2010-03-12 Dirk Schulze <krit@webkit.org> 2 16 -
trunk/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
r55927 r55962 315 315 , m_maxTimeLoaded(0) 316 316 , m_bufferingPercentage(0) 317 , m_preload(MediaPlayer::Auto)318 , m_delayingLoad(false)319 317 { 320 318 if (doGstInit()) … … 371 369 void MediaPlayerPrivate::load(const String& url) 372 370 { 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 to386 // start providing anything useful.387 gst_element_set_state(m_playBin, GST_STATE_PAUSED);388 389 371 LOG_VERBOSE(Media, "Load %s", url.utf8().data()); 390 372 if (m_networkState != MediaPlayer::Loading) { … … 396 378 m_player->readyStateChanged(); 397 379 } 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); 398 386 } 399 387 … … 415 403 } 416 404 return true; 417 }418 419 void MediaPlayerPrivate::prepareToPlay()420 {421 if (m_delayingLoad) {422 m_delayingLoad = false;423 commitLoad();424 }425 405 } 426 406 … … 1386 1366 ASSERT(m_playBin); 1387 1367 1388 m_preload = preload;1389 1390 1368 GstPlayFlags flags; 1391 1369 g_object_get(m_playBin, "flags", &flags, NULL); … … 1394 1372 else 1395 1373 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 }1401 1374 } 1402 1375 -
trunk/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h
r55927 r55962 64 64 65 65 void load(const String &url); 66 void commitLoad();67 66 void cancelLoad(); 68 67 bool loadNextLocation(); 69 68 70 void prepareToPlay();71 69 void play(); 72 70 void pause(); … … 170 168 float m_maxTimeLoaded; 171 169 int m_bufferingPercentage; 172 MediaPlayer::Preload m_preload;173 bool m_delayingLoad;174 170 }; 175 171 }
Note: See TracChangeset
for help on using the changeset viewer.