Commit ec5fb5e7 authored by eric.carlson@apple.com's avatar eric.carlson@apple.com
Browse files

2009-03-18 Eric Carlson <eric.carlson@apple.com>

        Reviewed by Simon Fraser.

        Fix for <rdar://problem/6685235>
        <video> element poster cannot be set dynamically if not originally set up in HTML
        
        Allocate the media engine immediately so the plug-in proxy is available for
        scripting right away.

        * platform/graphics/MediaPlayer.cpp:
        (WebCore::MediaPlayer::MediaPlayer):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@41816 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent b166a99e
2009-03-18 Eric Carlson <eric.carlson@apple.com>
Reviewed by Simon Fraser.
Fix for <rdar://problem/6685235>
<video> element poster cannot be set dynamically if not originally set up in HTML
Allocate the media engine immediately so the plug-in proxy is available for
scripting right away.
* platform/graphics/MediaPlayer.cpp:
(WebCore::MediaPlayer::MediaPlayer):
2009-03-18 Beth Dakin <bdakin@apple.com>
 
Reviewed by Dave Hyatt.
......@@ -187,6 +187,14 @@ MediaPlayer::MediaPlayer(MediaPlayerClient* client)
, m_playerProxy(0)
#endif
{
#if ENABLE(PLUGIN_PROXY_FOR_VIDEO)
Vector<MediaPlayerFactory*>& engines = installedMediaEngines();
if (!engines.isEmpty()) {
m_currentMediaEngine = engines[0];
m_private.clear();
m_private.set(engines[0]->constructor(this));
}
#endif
}
MediaPlayer::~MediaPlayer()
......
Supports Markdown
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