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
f2ce1cab
Commit
f2ce1cab
authored
Nov 06, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gain: setup filter_t only when successful
parent
c1ab8edd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
+2
-9
modules/audio_filter/gain.c
modules/audio_filter/gain.c
+2
-9
No files found.
modules/audio_filter/gain.c
View file @
f2ce1cab
...
@@ -79,15 +79,7 @@ vlc_module_end()
...
@@ -79,15 +79,7 @@ vlc_module_end()
static
int
Open
(
vlc_object_t
*
p_this
)
static
int
Open
(
vlc_object_t
*
p_this
)
{
{
filter_t
*
p_filter
=
(
filter_t
*
)
p_this
;
filter_t
*
p_filter
=
(
filter_t
*
)
p_this
;
filter_sys_t
*
p_sys
;
filter_sys_t
*
p_sys
=
vlc_object_create
(
p_this
,
sizeof
(
*
p_sys
)
);
if
(
!
AOUT_FMTS_IDENTICAL
(
&
p_filter
->
fmt_in
.
audio
,
&
p_filter
->
fmt_out
.
audio
)
)
{
msg_Warn
(
p_filter
,
"bad input or output format"
);
return
VLC_EGENERIC
;
}
p_sys
=
vlc_object_create
(
p_this
,
sizeof
(
*
p_sys
)
);
if
(
unlikely
(
p_sys
==
NULL
)
)
if
(
unlikely
(
p_sys
==
NULL
)
)
return
VLC_ENOMEM
;
return
VLC_ENOMEM
;
...
@@ -104,6 +96,7 @@ static int Open( vlc_object_t *p_this )
...
@@ -104,6 +96,7 @@ static int Open( vlc_object_t *p_this )
p_sys
->
f_gain
=
var_InheritFloat
(
p_filter
->
p_parent
,
"gain-value"
);
p_sys
->
f_gain
=
var_InheritFloat
(
p_filter
->
p_parent
,
"gain-value"
);
msg_Dbg
(
p_filter
,
"gain multiplier sets to %.2fx"
,
p_sys
->
f_gain
);
msg_Dbg
(
p_filter
,
"gain multiplier sets to %.2fx"
,
p_sys
->
f_gain
);
p_filter
->
fmt_out
.
audio
=
p_filter
->
fmt_in
.
audio
;
p_filter
->
pf_audio_filter
=
Process
;
p_filter
->
pf_audio_filter
=
Process
;
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
...
...
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