Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
6906a7c0
Commit
6906a7c0
authored
Mar 10, 2007
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check return value of GetInput
parent
3ac440cc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
src/control/audio.c
src/control/audio.c
+6
-0
No files found.
src/control/audio.c
View file @
6906a7c0
...
@@ -148,6 +148,9 @@ int libvlc_audio_get_track( libvlc_input_t *p_input,
...
@@ -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
);
input_thread_t
*
p_input_thread
=
GetInput
(
p_input
,
p_e
);
int
i_track
=
0
;
int
i_track
=
0
;
if
(
!
p_input_thread
)
return
-
1
;
i_track
=
var_GetInteger
(
p_input_thread
,
"audio-es"
);
i_track
=
var_GetInteger
(
p_input_thread
,
"audio-es"
);
vlc_object_release
(
p_input_thread
);
vlc_object_release
(
p_input_thread
);
...
@@ -165,6 +168,9 @@ void libvlc_audio_set_track( libvlc_input_t *p_input, int i_track,
...
@@ -165,6 +168,9 @@ void libvlc_audio_set_track( libvlc_input_t *p_input, int i_track,
int
i_ret
=
-
1
;
int
i_ret
=
-
1
;
int
i
;
int
i
;
if
(
!
p_input_thread
)
return
;
var_Change
(
p_input_thread
,
"audio-es"
,
VLC_VAR_GETCHOICES
,
&
val_list
,
NULL
);
var_Change
(
p_input_thread
,
"audio-es"
,
VLC_VAR_GETCHOICES
,
&
val_list
,
NULL
);
for
(
i
=
0
;
i
<
val_list
.
p_list
->
i_count
;
i
++
)
for
(
i
=
0
;
i
<
val_list
.
p_list
->
i_count
;
i
++
)
{
{
...
...
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