2010-08-13 Eric Carlson <eric.carlson@apple.com>

        Reviewed by David Kilzer.

        HTMLMediaElement::prepareForLoad should cancel current plug-in proxy media player
        https://bugs.webkit.org/show_bug.cgi?id=43923

        * html/HTMLMediaElement.cpp:
        (WebCore::HTMLMediaElement::prepareForLoad): Tell mediaPlayer to cancel the current load
        if it already exists.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65324 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent d7e5fff3
2010-08-13 Eric Carlson <eric.carlson@apple.com>
Reviewed by David Kilzer.
HTMLMediaElement::prepareForLoad should cancel current plug-in proxy media player
https://bugs.webkit.org/show_bug.cgi?id=43923
* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::prepareForLoad): Tell mediaPlayer to cancel the current load
if it already exists.
2010-08-12 Stephen White <senorblanco@chromium.org>
Reviewed by David Levin.
......@@ -511,7 +511,10 @@ void HTMLMediaElement::prepareForLoad()
#if !ENABLE(PLUGIN_PROXY_FOR_VIDEO)
m_player = MediaPlayer::create(this);
#else
createMediaPlayerProxy();
if (m_player)
m_player->cancelLoad();
else
createMediaPlayerProxy();
#endif
// 4 - If the media element's networkState is not set to NETWORK_EMPTY, then run these substeps
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment