Changeset 149735 in webkit
- Timestamp:
- May 8, 2013 6:41:13 AM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r149734 r149735 1 2013-05-08 Gustavo Noronha Silva <gustavo.noronha@collabora.com> 2 3 [GStreamer] Does memory buffering even with preload set to none 4 https://bugs.webkit.org/show_bug.cgi?id=115754 5 6 Reviewed by Philippe Normand. 7 8 Covered by existing tests. 9 10 Revision 148840 fixed on-disk buffering being done when preload is set to none, 11 but memory buffering is still being done. That is because setting the state to 12 paused causes GStreamer to start loading the media, to gather information. Only 13 doing that when committing the load avoids that while maintaining the tested 14 behaviour unchanged. 15 16 * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp: 17 (WebCore::MediaPlayerPrivateGStreamer::load): move setting pause state to commitLoad. 18 (WebCore::MediaPlayerPrivateGStreamer::commitLoad): see above. 19 1 20 2013-05-08 Andreas Kling <akling@apple.com> 2 21 -
trunk/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
r149543 r149735 300 300 m_volumeAndMuteInitialized = false; 301 301 302 if (!m_delayingLoad) 303 commitLoad(); 304 } 305 306 #if ENABLE(MEDIA_SOURCE) 307 void MediaPlayerPrivateGStreamer::load(const String& url, PassRefPtr<MediaSource>) 308 { 309 notImplemented(); 310 } 311 #endif 312 313 void MediaPlayerPrivateGStreamer::commitLoad() 314 { 315 ASSERT(!m_delayingLoad); 316 LOG_MEDIA_MESSAGE("Committing load."); 317 302 318 // GStreamer needs to have the pipeline set to a paused state to 303 319 // start providing anything useful. 304 320 gst_element_set_state(m_playBin.get(), GST_STATE_PAUSED); 305 321 306 if (!m_delayingLoad)307 commitLoad();308 }309 310 #if ENABLE(MEDIA_SOURCE)311 void MediaPlayerPrivateGStreamer::load(const String& url, PassRefPtr<MediaSource>)312 {313 notImplemented();314 }315 #endif316 317 void MediaPlayerPrivateGStreamer::commitLoad()318 {319 ASSERT(!m_delayingLoad);320 LOG_MEDIA_MESSAGE("Committing load.");321 322 updateStates(); 322 323 }
Note: See TracChangeset
for help on using the changeset viewer.