[vlc-devel] commit: Changing libvlc_video_take_snapshot prototype ( Hugo Beauzee-Luyssen )

git version control git at videolan.org
Mon May 11 18:31:44 CEST 2009


vlc | branch: master | Hugo Beauzee-Luyssen <beauze.h at gmail.com> | Sun May 10 18:59:56 2009 +0200| [deabbf7d1dcb6b83ec7e8e4d67b260a13e840910] | committer: Rémi Denis-Courmont 

Changing libvlc_video_take_snapshot prototype

So that it takes a const char* as the filename parameter.

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=deabbf7d1dcb6b83ec7e8e4d67b260a13e840910
---

 include/vlc/libvlc.h |    2 +-
 src/control/video.c  |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/vlc/libvlc.h b/include/vlc/libvlc.h
index 4085e25..5794c0a 100644
--- a/include/vlc/libvlc.h
+++ b/include/vlc/libvlc.h
@@ -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.
diff --git a/src/control/video.c b/src/control/video.c
index 567532c..81c0052 100644
--- a/src/control/video.c
+++ b/src/control/video.c
@@ -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 );




More information about the vlc-devel mailing list