Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
7b6ed91d
Commit
7b6ed91d
authored
May 20, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Factorization.
parent
78d87996
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
14 deletions
+10
-14
src/control/media_player.c
src/control/media_player.c
+10
-14
No files found.
src/control/media_player.c
View file @
7b6ed91d
...
...
@@ -1167,6 +1167,8 @@ libvlc_track_description_t *
libvlc_exception_t
*
p_e
)
{
input_thread_t
*
p_input
=
libvlc_get_input_thread
(
p_mi
,
p_e
);
libvlc_track_description_t
*
p_track_description
=
NULL
,
*
p_actual
,
*
p_previous
;
if
(
!
p_input
)
return
NULL
;
...
...
@@ -1174,22 +1176,16 @@ libvlc_track_description_t *
vlc_value_t
val_list
,
text_list
;
var_Change
(
p_input
,
psz_variable
,
VLC_VAR_GETLIST
,
&
val_list
,
&
text_list
);
if
(
val_list
.
p_list
->
i_count
<=
0
)
/* no tracks */
{
var_FreeList
(
&
val_list
,
&
text_list
);
vlc_object_release
(
p_input
);
return
NULL
;
}
/* no tracks */
if
(
val_list
.
p_list
->
i_count
<=
0
)
goto
end
;
libvlc_track_description_t
*
p_track_description
,
*
p_actual
,
*
p_previous
;
p_track_description
=
(
libvlc_track_description_t
*
)
malloc
(
sizeof
(
libvlc_track_description_t
)
);
if
(
!
p_track_description
)
{
var_FreeList
(
&
val_list
,
&
text_list
);
vlc_object_release
(
p_input
);
libvlc_exception_raise
(
p_e
,
"no enough memory"
);
return
NULL
;
goto
end
;
}
p_actual
=
p_track_description
;
p_previous
=
NULL
;
...
...
@@ -1202,10 +1198,8 @@ libvlc_track_description_t *
if
(
!
p_actual
)
{
libvlc_track_description_release
(
p_track_description
);
var_FreeList
(
&
val_list
,
&
text_list
);
vlc_object_release
(
p_input
);
libvlc_exception_raise
(
p_e
,
"no enough memory"
);
return
NULL
;
goto
end
;
}
}
p_actual
->
i_id
=
val_list
.
p_list
->
p_values
[
i
].
i_int
;
...
...
@@ -1216,7 +1210,9 @@ libvlc_track_description_t *
p_previous
=
p_actual
;
p_actual
=
NULL
;
}
var_FreeList
(
&
val_list
,
&
text_list
);
end:
var_FreeList
(
&
val_list
,
&
text_list
);
vlc_object_release
(
p_input
);
return
p_track_description
;
...
...
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