]> git.sesse.net Git - vlc/blobdiff - src/control/video.c
few fixes in libvlc APis
[vlc] / src / control / video.c
index 288e31f8d1541fa2b89a432cc4878e542c866da5..87dc4adc29da80c2c5103f6f939f87c47b3b7ec3 100644 (file)
@@ -1,5 +1,5 @@
 /*****************************************************************************
- * video.c: ibvlc new API video functions
+ * video.c: libvlc new API video functions
  *****************************************************************************
  * Copyright (C) 2005 the VideoLAN team
  * $Id: core.c 14187 2006-02-07 16:37:40Z courmisch $
@@ -208,3 +208,25 @@ vlc_bool_t libvlc_input_has_vout( libvlc_input_t *p_input,
     
     return VLC_TRUE;
 }
+
+
+int libvlc_video_reparent( libvlc_input_t *p_input, libvlc_drawable_t d,
+                           libvlc_exception_t *p_e )
+{
+    vout_thread_t *p_vout = GetVout( p_input, p_e );
+    vout_Control( p_vout , VOUT_REPARENT, d);
+    return 0;
+    
+}
+
+int libvlc_video_destroy( libvlc_input_t *p_input,
+                          libvlc_exception_t *p_e )
+{
+    vout_thread_t *p_vout = GetVout( p_input, p_e );
+    vlc_object_detach( p_vout ); 
+    vlc_object_release( p_vout );
+    vout_Destroy( p_vout );
+    
+    return 0;
+    
+}