mirror of
https://code.videolan.org/videolan/vlc
synced 2024-10-03 01:31:53 +02:00
lib: fix signedness of SPU track ID in libvlc_video_set_spu()
Luckily, signed and unsigned int are compatible types.
This commit is contained in:
parent
e712c11f55
commit
5987f34d99
@ -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.
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user