vlc | branch: master | Rémi Denis-Courmont <[email protected]> | Tue Feb 19 23:43:03 2013 +0200| [5987f34d99b14b127e51d5bc68fc97e0bf71e7b3] | committer: Rémi Denis-Courmont
lib: fix signedness of SPU track ID in libvlc_video_set_spu() Luckily, signed and unsigned int are compatible types. > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5987f34d99b14b127e51d5bc68fc97e0bf71e7b3 --- include/vlc/libvlc_media_player.h | 4 ++-- lib/video.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/vlc/libvlc_media_player.h b/include/vlc/libvlc_media_player.h index 53e9f9c..bd93201 100644 --- a/include/vlc/libvlc_media_player.h +++ b/include/vlc/libvlc_media_player.h @@ -1037,10 +1037,10 @@ LIBVLC_API libvlc_track_description_t * * Set new video subtitle. * * \param p_mi the media player - * \param i_spu new video subtitle to select + * \param i_spu video subtitle track to select (i_id from track description) * \return 0 on success, -1 if out of range */ -LIBVLC_API int libvlc_video_set_spu( libvlc_media_player_t *p_mi, unsigned i_spu ); +LIBVLC_API int libvlc_video_set_spu( libvlc_media_player_t *p_mi, int i_spu ); /** * Set new video subtitle file. diff --git a/lib/video.c b/lib/video.c index c3b1c68..43471b9 100644 --- a/lib/video.c +++ b/lib/video.c @@ -314,7 +314,7 @@ libvlc_track_description_t * return libvlc_get_track_description( p_mi, "spu-es" ); } -int libvlc_video_set_spu( libvlc_media_player_t *p_mi, unsigned i_spu ) +int libvlc_video_set_spu( libvlc_media_player_t *p_mi, int i_spu ) { input_thread_t *p_input_thread = libvlc_get_input_thread( p_mi ); vlc_value_t list; _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
