Commit af7a6ced authored by Sergey Radionov's avatar Sergey Radionov Committed by Jean-Baptiste Kempf

ActiveX: fixed crash on play of nonexistent playlist

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 56caef79
......@@ -1214,6 +1214,16 @@ static void handle_pausable_changed_event(const libvlc_event_t* event, void *par
bool VLCPlugin::playlist_select( int idx )
{
//In some cases, libvlc may not have been initialized yet.
//So check it and initialize if needed (in getVLC())
libvlc_instance_t* p_libvlc;
HRESULT hr = getVLC(&p_libvlc);
if( FAILED(hr) || !p_libvlc)
return false;
if(!_p_mlist)
return false;//playlist does not exist, nothing to play...
libvlc_media_t *p_m = NULL;
assert(_p_mlist);
......
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