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
9f3bbab5
Commit
9f3bbab5
authored
Aug 13, 2007
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include/vlc_input.h: This commit should have been part of r21062.
parent
1dc88b3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
28 deletions
+23
-28
include/vlc_input.h
include/vlc_input.h
+23
-28
No files found.
include/vlc_input.h
View file @
9f3bbab5
...
@@ -201,38 +201,33 @@ VLC_EXPORT( input_item_t *, input_ItemGetById, (playlist_t *, int ) );
...
@@ -201,38 +201,33 @@ VLC_EXPORT( input_item_t *, input_ItemGetById, (playlist_t *, int ) );
static
inline
void
vlc_audio_replay_gain_MergeFromMeta
(
audio_replay_gain_t
*
p_dst
,
static
inline
void
vlc_audio_replay_gain_MergeFromMeta
(
audio_replay_gain_t
*
p_dst
,
const
vlc_meta_t
*
p_meta
)
const
vlc_meta_t
*
p_meta
)
{
{
int
i
;
char
*
psz_value
;
if
(
!
p_meta
)
if
(
!
p_meta
)
return
;
return
;
for
(
i
=
0
;
i
<
p_meta
->
i_extra
;
i
++
)
if
(
(
psz_value
=
(
char
*
)
vlc_dictionary_value_for_key
(
&
p_meta
->
extra_tags
,
"REPLAYGAIN_TRACK_GAIN"
))
||
(
psz_value
=
(
char
*
)
vlc_dictionary_value_for_key
(
&
p_meta
->
extra_tags
,
"RG_RADIO"
))
)
{
{
const
char
*
psz_name
=
p_meta
->
ppsz_extra_name
[
i
];
p_dst
->
pb_gain
[
AUDIO_REPLAY_GAIN_TRACK
]
=
VLC_TRUE
;
const
char
*
psz_value
=
p_meta
->
ppsz_extra_value
[
i
];
p_dst
->
pf_gain
[
AUDIO_REPLAY_GAIN_TRACK
]
=
atof
(
psz_value
);
}
if
(
!
strcasecmp
(
psz_name
,
"REPLAYGAIN_TRACK_GAIN"
)
||
else
if
(
(
psz_value
=
(
char
*
)
vlc_dictionary_value_for_key
(
&
p_meta
->
extra_tags
,
"REPLAYGAIN_TRACK_PEAK"
))
||
!
strcasecmp
(
psz_name
,
"RG_RADIO"
)
)
(
psz_value
=
(
char
*
)
vlc_dictionary_value_for_key
(
&
p_meta
->
extra_tags
,
"RG_PEAK"
))
)
{
{
p_dst
->
pb_gain
[
AUDIO_REPLAY_GAIN_TRACK
]
=
VLC_TRUE
;
p_dst
->
pb_peak
[
AUDIO_REPLAY_GAIN_TRACK
]
=
VLC_TRUE
;
p_dst
->
pf_gain
[
AUDIO_REPLAY_GAIN_TRACK
]
=
atof
(
psz_value
);
p_dst
->
pf_peak
[
AUDIO_REPLAY_GAIN_TRACK
]
=
atof
(
psz_value
);
}
}
else
if
(
!
strcasecmp
(
psz_name
,
"REPLAYGAIN_TRACK_PEAK"
)
||
else
if
(
(
psz_value
=
(
char
*
)
vlc_dictionary_value_for_key
(
&
p_meta
->
extra_tags
,
"REPLAYGAIN_ALBUM_GAIN"
))
||
!
strcasecmp
(
psz_name
,
"RG_PEAK"
)
)
(
psz_value
=
(
char
*
)
vlc_dictionary_value_for_key
(
&
p_meta
->
extra_tags
,
"RG_AUDIOPHILE"
))
)
{
{
p_dst
->
pb_peak
[
AUDIO_REPLAY_GAIN_TRACK
]
=
VLC_TRUE
;
p_dst
->
pb_gain
[
AUDIO_REPLAY_GAIN_ALBUM
]
=
VLC_TRUE
;
p_dst
->
pf_peak
[
AUDIO_REPLAY_GAIN_TRACK
]
=
atof
(
psz_value
);
p_dst
->
pf_gain
[
AUDIO_REPLAY_GAIN_ALBUM
]
=
atof
(
psz_value
);
}
}
else
if
(
!
strcasecmp
(
psz_name
,
"REPLAYGAIN_ALBUM_GAIN"
)
||
else
if
(
(
psz_value
=
(
char
*
)
vlc_dictionary_value_for_key
(
&
p_meta
->
extra_tags
,
"REPLAYGAIN_ALBUM_PEAK"
))
)
!
strcasecmp
(
psz_name
,
"RG_AUDIOPHILE"
)
)
{
{
p_dst
->
pb_peak
[
AUDIO_REPLAY_GAIN_ALBUM
]
=
VLC_TRUE
;
p_dst
->
pb_gain
[
AUDIO_REPLAY_GAIN_ALBUM
]
=
VLC_TRUE
;
p_dst
->
pf_peak
[
AUDIO_REPLAY_GAIN_ALBUM
]
=
atof
(
psz_value
);
p_dst
->
pf_gain
[
AUDIO_REPLAY_GAIN_ALBUM
]
=
atof
(
psz_value
);
}
else
if
(
!
strcasecmp
(
psz_name
,
"REPLAYGAIN_ALBUM_PEAK"
)
)
{
p_dst
->
pb_peak
[
AUDIO_REPLAY_GAIN_ALBUM
]
=
VLC_TRUE
;
p_dst
->
pf_peak
[
AUDIO_REPLAY_GAIN_ALBUM
]
=
atof
(
psz_value
);
}
}
}
}
}
...
...
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