]> git.sesse.net Git - vlc/blobdiff - bindings/libvlcpp/src/video.cpp
libvlcpp: add a function to handle video.
[vlc] / bindings / libvlcpp / src / video.cpp
index 58cc3cfd2f9bc1d07c81a7dbf2569972c35213b9..83fed5243b76acbdfebc066d323548baf55a2062 100644 (file)
 
 using namespace libvlc;
 
-Video::Video( libvlc_media_player_t *player )
+Video::Video()
 {
-    m_player = player;
-    libvlc_media_player_retain( m_player );
 }
 
 Video::~Video()
@@ -111,3 +109,9 @@ void Video::deinterlace( int enable, const char *mode )
     else
         libvlc_video_set_deinterlace( m_player, NULL );
 }
+
+void Video::setMediaPlayer( libvlc_media_player_t *player )
+{
+    libvlc_media_player_retain( player );
+    m_player = player;
+}