Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
989a7bdb
Commit
989a7bdb
authored
Oct 22, 2005
by
Boris Dorès
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- accurate testing of i_original_channels
parent
4bcde574
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
13 deletions
+14
-13
modules/audio_filter/channel_mixer/dolby.c
modules/audio_filter/channel_mixer/dolby.c
+5
-7
modules/audio_filter/channel_mixer/headphone.c
modules/audio_filter/channel_mixer/headphone.c
+9
-6
No files found.
modules/audio_filter/channel_mixer/dolby.c
View file @
989a7bdb
...
...
@@ -81,13 +81,11 @@ static int Create( vlc_object_t *p_this )
aout_filter_t
*
p_filter
=
(
aout_filter_t
*
)
p_this
;
/* Validate audio filter format */
if
(
p_filter
->
input
.
i_original_channels
!=
(
AOUT_CHAN_LEFT
|
AOUT_CHAN_RIGHT
|
AOUT_CHAN_DOLBYSTEREO
)
||
aout_FormatNbChannels
(
&
p_filter
->
output
)
<=
2
||
p_filter
->
output
.
i_physical_channels
!=
(
p_filter
->
output
.
i_original_channels
&
AOUT_CHAN_PHYSMASK
)
||
p_filter
->
input
.
i_physical_channels
!=
(
p_filter
->
input
.
i_original_channels
&
AOUT_CHAN_PHYSMASK
))
if
(
p_filter
->
input
.
i_physical_channels
!=
(
AOUT_CHAN_LEFT
|
AOUT_CHAN_RIGHT
)
||
!
(
p_filter
->
input
.
i_original_channels
&
AOUT_CHAN_DOLBYSTEREO
)
||
aout_FormatNbChannels
(
&
p_filter
->
output
)
<=
2
||
(
p_filter
->
input
.
i_original_channels
&
~
AOUT_CHAN_DOLBYSTEREO
)
!=
(
p_filter
->
output
.
i_original_channels
&
~
AOUT_CHAN_DOLBYSTEREO
)
)
{
return
VLC_EGENERIC
;
}
...
...
modules/audio_filter/channel_mixer/headphone.c
View file @
989a7bdb
...
...
@@ -344,17 +344,21 @@ static int Create( vlc_object_t *p_this )
vlc_bool_t
b_fit
=
VLC_TRUE
;
/* Activate this filter only with stereo devices */
if
(
p_filter
->
output
.
i_physical_channels
!=
(
AOUT_CHAN_LEFT
|
AOUT_CHAN_RIGHT
)
||
p_filter
->
output
.
i_physical_channels
!=
(
p_filter
->
output
.
i_original_channels
&
AOUT_CHAN_PHYSMASK
)
||
p_filter
->
input
.
i_physical_channels
!=
(
p_filter
->
input
.
i_original_channels
&
AOUT_CHAN_PHYSMASK
)
)
if
(
p_filter
->
output
.
i_physical_channels
!=
(
AOUT_CHAN_LEFT
|
AOUT_CHAN_RIGHT
)
)
{
msg_Dbg
(
p_filter
,
"Filter discarded (incompatible format)"
);
return
VLC_EGENERIC
;
}
/* Request a specific format if not already compatible */
if
(
p_filter
->
input
.
i_original_channels
!=
p_filter
->
output
.
i_original_channels
)
{
b_fit
=
VLC_FALSE
;
p_filter
->
input
.
i_original_channels
=
p_filter
->
output
.
i_original_channels
;
}
if
(
p_filter
->
input
.
i_format
!=
VLC_FOURCC
(
'f'
,
'l'
,
'3'
,
'2'
)
||
p_filter
->
output
.
i_format
!=
VLC_FOURCC
(
'f'
,
'l'
,
'3'
,
'2'
)
)
{
...
...
@@ -376,7 +380,6 @@ static int Create( vlc_object_t *p_this )
AOUT_CHAN_CENTER
|
AOUT_CHAN_REARLEFT
|
AOUT_CHAN_REARRIGHT
;
p_filter
->
input
.
i_original_channels
=
p_filter
->
input
.
i_physical_channels
;
}
if
(
!
b_fit
)
{
...
...
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