[vlc-devel] [PATCH 10/12] ActiveX: switch VLCPlaylistItems to using vlc_player
Sergey Radionov
rsatom at gmail.com
Sat Apr 21 18:07:51 CEST 2012
---
activex/vlccontrol2.cpp | 13 ++++---------
1 files changed, 4 insertions(+), 9 deletions(-)
diff --git a/activex/vlccontrol2.cpp b/activex/vlccontrol2.cpp
index 026664c..701dfed 100644
--- a/activex/vlccontrol2.cpp
+++ b/activex/vlccontrol2.cpp
@@ -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;
};
/****************************************************************************/
--
1.7.7.1.msysgit.0
More information about the vlc-devel
mailing list