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
b2e76597
Commit
b2e76597
authored
Nov 06, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
karaoke: change format when needed instead of failing
parent
f2ce1cab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
modules/audio_filter/karaoke.c
modules/audio_filter/karaoke.c
+2
-4
No files found.
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
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