Changing libvlc_video_take_snapshot prototype
authorHugo Beauzee-Luyssen <beauze.h@gmail.com>
Sun, 10 May 2009 16:59:56 +0000 (18:59 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 10 May 2009 17:27:12 +0000 (20:27 +0300)
So that it takes a const char* as the filename parameter.

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
include/vlc/libvlc.h
src/control/video.c

index 4085e25..5794c0a 100644 (file)
@@ -1065,7 +1065,7 @@ VLC_PUBLIC_API void libvlc_video_set_track( libvlc_media_player_t *, int, libvlc
  * \param i_height the snapshot's height
  * \param p_e an initialized exception pointer
  */
-VLC_PUBLIC_API void libvlc_video_take_snapshot( libvlc_media_player_t *, char *,unsigned int, unsigned int, libvlc_exception_t * );
+VLC_PUBLIC_API void libvlc_video_take_snapshot( libvlc_media_player_t *, const char *,unsigned int, unsigned int, libvlc_exception_t * );
 
 /**
  * Resize the current video output window.
index 567532c..81c0052 100644 (file)
@@ -104,7 +104,7 @@ void libvlc_toggle_fullscreen( libvlc_media_player_t *p_mi,
 }
 
 void
-libvlc_video_take_snapshot( libvlc_media_player_t *p_mi, char *psz_filepath,
+libvlc_video_take_snapshot( libvlc_media_player_t *p_mi, const char *psz_filepath,
         unsigned int i_width, unsigned int i_height, libvlc_exception_t *p_e )
 {
     vout_thread_t *p_vout = GetVout( p_mi, p_e );