Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
59a6c969
Commit
59a6c969
authored
Feb 12, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libvlc_media_tracks_get: use unsigned as applicable
parent
cd5345a0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
9 deletions
+7
-9
include/vlc/libvlc_media.h
include/vlc/libvlc_media.h
+4
-4
lib/media.c
lib/media.c
+3
-5
No files found.
include/vlc/libvlc_media.h
View file @
59a6c969
...
@@ -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
);
/** @}*/
/** @}*/
...
...
lib/media.c
View file @
59a6c969
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment