[vlc-commits] lib: fix signedness of SPU track ID in libvlc_video_set_spu()

Rémi Denis-Courmont git at videolan.org
Tue Feb 19 22:43:57 CET 2013


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | 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;



More information about the vlc-commits mailing list