Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
67bd0e7d
Commit
67bd0e7d
authored
Mar 14, 2014
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: ogg: map language to fmt desc
refs #4175
parent
d1b35f9e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
modules/demux/xiph_metadata.c
modules/demux/xiph_metadata.c
+9
-1
No files found.
modules/demux/xiph_metadata.c
View file @
67bd0e7d
...
@@ -243,6 +243,14 @@ void vorbis_ParseComment( es_format_t *p_fmt, vlc_meta_t **pp_meta,
...
@@ -243,6 +243,14 @@ void vorbis_ParseComment( es_format_t *p_fmt, vlc_meta_t **pp_meta,
has##var = true; \
has##var = true; \
}
}
#define IF_EXTRACT_FMT(txt,var,fmt,target) \
IF_EXTRACT(txt,var)\
if( fmt && !strncasecmp(psz_comment, txt, strlen(txt)) )\
{\
if ( fmt->target ) free( fmt->target );\
fmt->target = strdup(&psz_comment[strlen(txt)]);\
}
IF_EXTRACT
(
"TITLE="
,
Title
)
IF_EXTRACT
(
"TITLE="
,
Title
)
else
IF_EXTRACT
(
"ARTIST="
,
Artist
)
else
IF_EXTRACT
(
"ARTIST="
,
Artist
)
else
IF_EXTRACT
(
"GENRE="
,
Genre
)
else
IF_EXTRACT
(
"GENRE="
,
Genre
)
...
@@ -276,7 +284,7 @@ void vorbis_ParseComment( es_format_t *p_fmt, vlc_meta_t **pp_meta,
...
@@ -276,7 +284,7 @@ void vorbis_ParseComment( es_format_t *p_fmt, vlc_meta_t **pp_meta,
else
IF_EXTRACT
(
"COMMENTS="
,
Description
)
else
IF_EXTRACT
(
"COMMENTS="
,
Description
)
else
IF_EXTRACT
(
"RATING="
,
Rating
)
else
IF_EXTRACT
(
"RATING="
,
Rating
)
else
IF_EXTRACT
(
"DATE="
,
Date
)
else
IF_EXTRACT
(
"DATE="
,
Date
)
else
IF_EXTRACT
(
"LANGUAGE="
,
L
anguage
)
else
IF_EXTRACT
_FMT
(
"LANGUAGE="
,
Language
,
p_fmt
,
psz_l
anguage
)
else
IF_EXTRACT
(
"ORGANIZATION="
,
Publisher
)
else
IF_EXTRACT
(
"ORGANIZATION="
,
Publisher
)
else
IF_EXTRACT
(
"ENCODER="
,
EncodedBy
)
else
IF_EXTRACT
(
"ENCODER="
,
EncodedBy
)
else
if
(
!
strncasecmp
(
psz_comment
,
"METADATA_BLOCK_PICTURE="
,
strlen
(
"METADATA_BLOCK_PICTURE="
)))
else
if
(
!
strncasecmp
(
psz_comment
,
"METADATA_BLOCK_PICTURE="
,
strlen
(
"METADATA_BLOCK_PICTURE="
)))
...
...
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