Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
b2e76597
Commit
b2e76597
authored
Nov 06, 2012
by
Rémi Denis-Courmont
Browse files
karaoke: change format when needed instead of failing
parent
f2ce1cab
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/audio_filter/karaoke.c
View file @
b2e76597
...
...
@@ -47,16 +47,14 @@ static int Open (vlc_object_t *obj)
{
filter_t
*
filter
=
(
filter_t
*
)
obj
;
if
(
filter
->
fmt_in
.
audio
.
i_format
!=
VLC_CODEC_FL32
||
!
AOUT_FMTS_IDENTICAL
(
&
filter
->
fmt_in
.
audio
,
&
filter
->
fmt_out
.
audio
))
return
VLC_EGENERIC
;
if
(
filter
->
fmt_in
.
audio
.
i_channels
!=
2
)
{
msg_Err
(
filter
,
"voice removal requires stereo"
);
return
VLC_EGENERIC
;
}
filter
->
fmt_in
.
audio
.
i_format
=
VLC_CODEC_FL32
;
filter
->
fmt_out
.
audio
=
filter
->
fmt_in
.
audio
;
filter
->
pf_audio_filter
=
Process
;
return
VLC_SUCCESS
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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