]> git.sesse.net Git - vlc/commitdiff
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 4085e25628dc1db364f45d59332fcfc4562e912d..5794c0ad07cb4df63a0d6638055ced8adf7a8d6e 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 567532c68eaae28d8c9ac7250a466f90b5fe4dac..81c0052adf6850678b3602965b5e5881123e3b6d 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 );