Commit 18fe2d12 authored by Jean-Paul Saman's avatar Jean-Paul Saman

activex: our vlc instance should already have been initialized

Signed-off-by: Jean-Paul Saman's avatarJean-Paul Saman <jean-paul.saman@m2x.nl>
parent 9df2a843
...@@ -301,15 +301,11 @@ public: ...@@ -301,15 +301,11 @@ public:
} }
void playlist_play() void playlist_play()
{ {
if( !_p_libvlc )
initVLC();
if( _p_mplayer || playlist_select(0) ) if( _p_mplayer || playlist_select(0) )
libvlc_media_player_play(_p_mplayer); libvlc_media_player_play(_p_mplayer);
} }
void playlist_play_item(int idx) void playlist_play_item(int idx)
{ {
if( !_p_libvlc )
initVLC();
if( playlist_select(idx) ) if( playlist_select(idx) )
libvlc_media_player_play(_p_mplayer); libvlc_media_player_play(_p_mplayer);
} }
......
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