Commit 59a6c969 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

libvlc_media_tracks_get: use unsigned as applicable

parent cd5345a0
...@@ -575,11 +575,11 @@ int libvlc_media_get_tracks_info( libvlc_media_t *p_md, ...@@ -575,11 +575,11 @@ int libvlc_media_get_tracks_info( libvlc_media_t *p_md,
* descriptions (must be freed with libvlc_media_tracks_release * descriptions (must be freed with libvlc_media_tracks_release
by the caller) [OUT] by the caller) [OUT]
* *
* \return the number of Elementary Streams * \return the number of Elementary Streams (zero on error)
*/ */
LIBVLC_API LIBVLC_API
int libvlc_media_tracks_get( libvlc_media_t *p_md, unsigned libvlc_media_tracks_get( libvlc_media_t *p_md,
libvlc_media_track_t ***tracks ); libvlc_media_track_t ***tracks );
/** /**
...@@ -592,7 +592,7 @@ int libvlc_media_tracks_get( libvlc_media_t *p_md, ...@@ -592,7 +592,7 @@ int libvlc_media_tracks_get( libvlc_media_t *p_md,
*/ */
LIBVLC_API LIBVLC_API
void libvlc_media_tracks_release( libvlc_media_track_t **p_tracks, void libvlc_media_tracks_release( libvlc_media_track_t **p_tracks,
int i_count ); unsigned i_count );
/** @}*/ /** @}*/
......
...@@ -735,7 +735,7 @@ libvlc_media_get_tracks_info( libvlc_media_t *p_md, libvlc_media_track_info_t ** ...@@ -735,7 +735,7 @@ libvlc_media_get_tracks_info( libvlc_media_t *p_md, libvlc_media_track_info_t **
return i_es; return i_es;
} }
int unsigned
libvlc_media_tracks_get( libvlc_media_t *p_md, libvlc_media_track_t *** pp_es ) libvlc_media_tracks_get( libvlc_media_t *p_md, libvlc_media_track_t *** pp_es )
{ {
assert( p_md ); assert( p_md );
...@@ -819,11 +819,9 @@ libvlc_media_tracks_get( libvlc_media_t *p_md, libvlc_media_track_t *** pp_es ) ...@@ -819,11 +819,9 @@ libvlc_media_tracks_get( libvlc_media_t *p_md, libvlc_media_track_t *** pp_es )
/************************************************************************** /**************************************************************************
* Release media descriptor's elementary streams description array * Release media descriptor's elementary streams description array
**************************************************************************/ **************************************************************************/
void libvlc_media_tracks_release( libvlc_media_track_t **p_tracks, int i_count ) void libvlc_media_tracks_release( libvlc_media_track_t **p_tracks, unsigned i_count )
{ {
if( !p_tracks ) for( unsigned i = 0; i < i_count; ++i )
return;
for( int i = 0; i < i_count; ++i )
{ {
if ( !p_tracks[i] ) if ( !p_tracks[i] )
continue; continue;
......
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