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
2e77318c
Commit
2e77318c
authored
10 years ago
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lib: return NAN on libvlc_audio_equalizer_set_amp_at_index() error
parent
2e8d457a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
include/vlc/libvlc_media_player.h
include/vlc/libvlc_media_player.h
+1
-1
lib/audio.c
lib/audio.c
+1
-1
No files found.
include/vlc/libvlc_media_player.h
View file @
2e77318c
...
...
@@ -1833,7 +1833,7 @@ LIBVLC_API int libvlc_audio_equalizer_set_amp_at_index( libvlc_equalizer_t *p_eq
*
* \param p_equalizer valid equalizer handle, must not be NULL
* \param u_band index, counting from zero, of the frequency band to get
* \return amplification value (Hz);
zero
if there is no such frequency band
* \return amplification value (Hz);
NaN
if there is no such frequency band
* \version LibVLC 2.2.0 or later
*/
LIBVLC_API
float
libvlc_audio_equalizer_get_amp_at_index
(
libvlc_equalizer_t
*
p_equalizer
,
unsigned
u_band
);
...
...
This diff is collapsed.
Click to expand it.
lib/audio.c
View file @
2e77318c
...
...
@@ -621,7 +621,7 @@ int libvlc_audio_equalizer_set_amp_at_index( libvlc_equalizer_t *p_equalizer, fl
float
libvlc_audio_equalizer_get_amp_at_index
(
libvlc_equalizer_t
*
p_equalizer
,
unsigned
u_band
)
{
if
(
u_band
>=
EQZ_BANDS_MAX
)
return
0
.
f
;
return
nanf
(
""
)
;
return
p_equalizer
->
f_amp
[
u_band
];
}
This diff is collapsed.
Click to expand it.
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