From: RĂ©mi Denis-Courmont Date: Tue, 19 Feb 2013 21:43:03 +0000 (+0200) Subject: lib: fix signedness of SPU track ID in libvlc_video_set_spu() X-Git-Tag: 2.1.0-git~1236 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=5987f34d99b14b127e51d5bc68fc97e0bf71e7b3;p=vlc lib: fix signedness of SPU track ID in libvlc_video_set_spu() Luckily, signed and unsigned int are compatible types. --- diff --git a/include/vlc/libvlc_media_player.h b/include/vlc/libvlc_media_player.h index 53e9f9c6d8..bd932014f7 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 c3b1c68174..43471b9e21 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;