summaryrefslogtreecommitdiff
path: root/avmedia/source/vlc/vlcplayer.hxx
diff options
context:
space:
mode:
authorMinh Ngo <nlminhtl@gmail.com>2013-07-06 21:11:07 +0300
committerMichael Meeks <michael.meeks@suse.com>2013-07-26 10:50:20 +0100
commitb9af45c1f21dde339df5e80676c414efd43d0aa2 (patch)
treee94ce4a6b2819a32468fd7be66f8d8358e9eeeb3 /avmedia/source/vlc/vlcplayer.hxx
parentd8ea5e105bb0d65a05cc87b13e9b9ab58fba3ab6 (diff)
Setting url into the player class
Change-Id: I7175b3ac9a818c6ae0ac0fdbea70b0416df34446
Diffstat (limited to 'avmedia/source/vlc/vlcplayer.hxx')
-rw-r--r--avmedia/source/vlc/vlcplayer.hxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/avmedia/source/vlc/vlcplayer.hxx b/avmedia/source/vlc/vlcplayer.hxx
index d1e551154f93..c56959415521 100644
--- a/avmedia/source/vlc/vlcplayer.hxx
+++ b/avmedia/source/vlc/vlcplayer.hxx
@@ -22,7 +22,7 @@
#include "vlccommon.hxx"
#include <vlc/vlc.h>
-#include <boost/shared_ptr.hpp>
+#include <boost/scoped_ptr.hpp>
#include <cppuhelper/compbase2.hxx>
#include <com/sun/star/media/XPlayer.hpp>
#include <cppuhelper/basemutex.hxx>
@@ -37,10 +37,11 @@ typedef ::cppu::WeakComponentImplHelper2< ::com::sun::star::media::XPlayer,
class VLCPlayer : public ::cppu::BaseMutex,
public VLC_Base
{
- boost::shared_ptr<libvlc_instance_t> mInstance;
- boost::shared_ptr<libvlc_media_player_t> mPlayer;
+ boost::scoped_ptr<libvlc_instance_t> mInstance;
+ boost::scoped_ptr<libvlc_media_player_t> mPlayer;
+ boost::scoped_ptr<libvlc_media_t> mMedia;
public:
- VLCPlayer();
+ VLCPlayer( const rtl::OUString& url );
void SAL_CALL start();
void SAL_CALL stop();