Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
71a82406
Commit
71a82406
authored
Apr 05, 2012
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Vorbis: do not display meaningless data in meta
It can even crash Qt interface
parent
590f52e6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
modules/codec/vorbis.c
modules/codec/vorbis.c
+10
-5
No files found.
modules/codec/vorbis.c
View file @
71a82406
...
...
@@ -577,11 +577,6 @@ static void ParseVorbisComments( decoder_t *p_dec )
if
(
*
psz_value
==
'\0'
)
break
;
if
(
!
p_dec
->
p_description
)
p_dec
->
p_description
=
vlc_meta_New
();
if
(
p_dec
->
p_description
)
vlc_meta_AddExtra
(
p_dec
->
p_description
,
psz_name
,
psz_value
);
if
(
!
strcasecmp
(
psz_name
,
"REPLAYGAIN_TRACK_GAIN"
)
||
!
strcasecmp
(
psz_name
,
"RG_RADIO"
)
)
{
...
...
@@ -613,6 +608,16 @@ static void ParseVorbisComments( decoder_t *p_dec )
r
->
pb_peak
[
AUDIO_REPLAY_GAIN_ALBUM
]
=
true
;
r
->
pf_peak
[
AUDIO_REPLAY_GAIN_ALBUM
]
=
atof
(
psz_value
);
}
else
if
(
!
strcasecmp
(
psz_name
,
"METADATA_BLOCK_PICTURE"
)
)
{
/* Do nothing, for now */
}
else
{
if
(
!
p_dec
->
p_description
)
p_dec
->
p_description
=
vlc_meta_New
();
if
(
p_dec
->
p_description
)
vlc_meta_AddExtra
(
p_dec
->
p_description
,
psz_name
,
psz_value
);
}
}
free
(
psz_comment
);
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