Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
4k
Issue boards
Milestones
Code
Merge requests
454
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC
Commits
6906a7c0
Commit
6906a7c0
authored
18 years ago
by
Jean-Paul Saman
Browse files
Options
Downloads
Patches
Plain Diff
Check return value of GetInput
parent
3ac440cc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/control/audio.c
+6
-0
6 additions, 0 deletions
src/control/audio.c
with
6 additions
and
0 deletions
src/control/audio.c
+
6
−
0
View file @
6906a7c0
...
...
@@ -148,6 +148,9 @@ int libvlc_audio_get_track( libvlc_input_t *p_input,
input_thread_t
*
p_input_thread
=
GetInput
(
p_input
,
p_e
);
int
i_track
=
0
;
if
(
!
p_input_thread
)
return
-
1
;
i_track
=
var_GetInteger
(
p_input_thread
,
"audio-es"
);
vlc_object_release
(
p_input_thread
);
...
...
@@ -165,6 +168,9 @@ void libvlc_audio_set_track( libvlc_input_t *p_input, int i_track,
int
i_ret
=
-
1
;
int
i
;
if
(
!
p_input_thread
)
return
;
var_Change
(
p_input_thread
,
"audio-es"
,
VLC_VAR_GETCHOICES
,
&
val_list
,
NULL
);
for
(
i
=
0
;
i
<
val_list
.
p_list
->
i_count
;
i
++
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment