Kaydet (Commit) 619b848b authored tarafından Minh Ngo's avatar Minh Ngo Kaydeden (comit) Michael Meeks

Upd the instance API

Change-Id: Iba79d423336f9914ded8a121ba8f99f52c16466f
üst 5ae5a11f
...@@ -36,7 +36,7 @@ namespace ...@@ -36,7 +36,7 @@ namespace
VLCPlayer::VLCPlayer( const rtl::OUString& url ) VLCPlayer::VLCPlayer( const rtl::OUString& url )
: VLC_Base(m_aMutex) : VLC_Base(m_aMutex)
, mInstance( sizeof( VLC_ARGS ) / sizeof( VLC_ARGS[0] ), VLC_ARGS ) , mInstance( VLC_ARGS )
, mMedia( InitMedia( url, mInstance ), libvlc_media_release ) , mMedia( InitMedia( url, mInstance ), libvlc_media_release )
, mPlayer( libvlc_media_player_new_from_media( mMedia.get() ), libvlc_media_player_release ) , mPlayer( libvlc_media_player_new_from_media( mMedia.get() ), libvlc_media_player_release )
, mUrl( url ) , mUrl( url )
......
...@@ -17,11 +17,11 @@ namespace VLC ...@@ -17,11 +17,11 @@ namespace VLC
}; };
} }
Instance::Instance( int argc, const char * const *argv ) Instance::Instance( const char * const argv[] )
{ {
InitApiMap( VLC_INSTANCE_API ); InitApiMap( VLC_INSTANCE_API );
mInstance = libvlc_new( argc, argv ); mInstance = libvlc_new( sizeof( argv ) / sizeof( argv[0] ), argv );
} }
Instance::~Instance() Instance::~Instance()
......
...@@ -26,7 +26,7 @@ namespace VLC ...@@ -26,7 +26,7 @@ namespace VLC
class Instance class Instance
{ {
public: public:
Instance( int argc, const char * const *argv ); Instance( const char * const argv[] );
virtual ~Instance(); virtual ~Instance();
inline operator libvlc_instance_t*() inline operator libvlc_instance_t*()
......
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