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

ActiveX: switch VLCPlaylistItems to vlc_player

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 60ac2426
......@@ -510,25 +510,20 @@ STDMETHODIMP VLCPlaylistItems::get_count(long* count)
if( NULL == count )
return E_POINTER;
*count = Instance()->playlist_count();
*count = Instance()->get_player().items_count();
return S_OK;
};
STDMETHODIMP VLCPlaylistItems::clear()
{
Instance()->playlist_clear();
Instance()->get_player().clear_items();
return S_OK;
};
STDMETHODIMP VLCPlaylistItems::remove(long item)
{
libvlc_instance_t* p_libvlc;
HRESULT hr = getVLC(&p_libvlc);
if( SUCCEEDED(hr) )
{
Instance()->playlist_delete_item(item);
}
return hr;
Instance()->get_player().delete_item(item);
return S_OK;
};
/****************************************************************************/
......
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