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
7b5b08e3
Commit
7b5b08e3
authored
Feb 25, 2010
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libvlc: Use a union for libvlc_media_track_info_t.
parent
a3670b8f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
15 deletions
+16
-15
include/vlc/libvlc_media.h
include/vlc/libvlc_media.h
+12
-7
src/control/media.c
src/control/media.c
+4
-8
No files found.
include/vlc/libvlc_media.h
View file @
7b5b08e3
...
...
@@ -154,13 +154,18 @@ typedef struct libvlc_media_track_info_t
int
i_profile
;
int
i_level
;
union
{
struct
{
/* Audio specific */
unsigned
i_channels
;
unsigned
i_rate
;
}
audio
;
struct
{
/* Video specific */
unsigned
i_height
;
unsigned
i_width
;
}
video
;
}
u
;
}
libvlc_media_track_info_t
;
...
...
src/control/media.c
View file @
7b5b08e3
...
...
@@ -703,10 +703,6 @@ libvlc_media_get_tracks_info( libvlc_media_t *p_md, libvlc_media_track_info_t **
libvlc_media_track_info_t
*
p_mes
=
*
pp_es
+
i
;
const
es_format_t
*
p_es
=
p_input_item
->
es
[
i
];
p_mes
->
i_channels
=
p_mes
->
i_rate
=
0
;
p_mes
->
i_width
=
p_mes
->
i_height
=
0
;
p_mes
->
i_codec
=
p_es
->
i_codec
;
p_mes
->
i_id
=
p_es
->
i_id
;
...
...
@@ -721,13 +717,13 @@ libvlc_media_get_tracks_info( libvlc_media_t *p_md, libvlc_media_track_info_t **
break
;
case
VIDEO_ES
:
p_mes
->
i_type
=
libvlc_track_video
;
p_mes
->
i_height
=
p_es
->
video
.
i_height
;
p_mes
->
i_width
=
p_es
->
video
.
i_width
;
p_mes
->
u
.
video
.
i_height
=
p_es
->
video
.
i_height
;
p_mes
->
u
.
video
.
i_width
=
p_es
->
video
.
i_width
;
break
;
case
AUDIO_ES
:
p_mes
->
i_type
=
libvlc_track_audio
;
p_mes
->
i_channels
=
p_es
->
audio
.
i_channels
;
p_mes
->
i_rate
=
p_es
->
audio
.
i_rate
;
p_mes
->
u
.
audio
.
i_channels
=
p_es
->
audio
.
i_channels
;
p_mes
->
u
.
audio
.
i_rate
=
p_es
->
audio
.
i_rate
;
break
;
case
SPU_ES
:
p_mes
->
i_type
=
libvlc_track_text
;
...
...
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