Commit 5987f34d authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

lib: fix signedness of SPU track ID in libvlc_video_set_spu()

Luckily, signed and unsigned int are compatible types.
parent e712c11f
...@@ -1037,10 +1037,10 @@ LIBVLC_API libvlc_track_description_t * ...@@ -1037,10 +1037,10 @@ LIBVLC_API libvlc_track_description_t *
* Set new video subtitle. * Set new video subtitle.
* *
* \param p_mi the media player * \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 * \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. * Set new video subtitle file.
......
...@@ -314,7 +314,7 @@ libvlc_track_description_t * ...@@ -314,7 +314,7 @@ libvlc_track_description_t *
return libvlc_get_track_description( p_mi, "spu-es" ); 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 ); input_thread_t *p_input_thread = libvlc_get_input_thread( p_mi );
vlc_value_t list; vlc_value_t list;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment