Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
7c7f4ce0
Commit
7c7f4ce0
authored
Aug 08, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aout: lack of software mixer is non fatal
parent
bc9282fc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
13 deletions
+2
-13
src/audio_output/dec.c
src/audio_output/dec.c
+0
-11
src/audio_output/mixer.c
src/audio_output/mixer.c
+2
-2
No files found.
src/audio_output/dec.c
View file @
7c7f4ce0
...
@@ -103,11 +103,6 @@ int aout_DecNew( audio_output_t *p_aout,
...
@@ -103,11 +103,6 @@ int aout_DecNew( audio_output_t *p_aout,
assert
(
owner
->
volume
.
mixer
==
NULL
);
assert
(
owner
->
volume
.
mixer
==
NULL
);
owner
->
volume
.
mixer
=
aout_MixerNew
(
p_aout
,
owner
->
mixer_format
.
i_format
);
owner
->
volume
.
mixer
=
aout_MixerNew
(
p_aout
,
owner
->
mixer_format
.
i_format
);
if
(
owner
->
volume
.
mixer
==
NULL
)
{
aout_OutputDelete
(
p_aout
);
goto
error
;
}
date_Init
(
&
owner
->
sync
.
date
,
owner
->
mixer_format
.
i_rate
,
1
);
date_Init
(
&
owner
->
sync
.
date
,
owner
->
mixer_format
.
i_rate
,
1
);
date_Set
(
&
owner
->
sync
.
date
,
VLC_TS_INVALID
);
date_Set
(
&
owner
->
sync
.
date
,
VLC_TS_INVALID
);
...
@@ -168,17 +163,11 @@ static void aout_CheckRestart (audio_output_t *aout)
...
@@ -168,17 +163,11 @@ static void aout_CheckRestart (audio_output_t *aout)
if
(
aout_OutputNew
(
aout
,
&
input
->
input
))
if
(
aout_OutputNew
(
aout
,
&
input
->
input
))
{
{
error:
input
->
b_error
=
true
;
input
->
b_error
=
true
;
return
;
/* we are officially screwed */
return
;
/* we are officially screwed */
}
}
owner
->
volume
.
mixer
=
aout_MixerNew
(
aout
,
owner
->
mixer_format
.
i_format
);
owner
->
volume
.
mixer
=
aout_MixerNew
(
aout
,
owner
->
mixer_format
.
i_format
);
if
(
owner
->
volume
.
mixer
==
NULL
)
{
aout_OutputDelete
(
aout
);
goto
error
;
}
if
(
aout_InputNew
(
aout
,
input
,
&
input
->
request_vout
))
if
(
aout_InputNew
(
aout
,
input
,
&
input
->
request_vout
))
assert
(
input
->
b_error
);
assert
(
input
->
b_error
);
...
...
src/audio_output/mixer.c
View file @
7c7f4ce0
...
@@ -51,7 +51,6 @@ audio_mixer_t *aout_MixerNew(vlc_object_t *obj, vlc_fourcc_t format)
...
@@ -51,7 +51,6 @@ audio_mixer_t *aout_MixerNew(vlc_object_t *obj, vlc_fourcc_t format)
mixer
->
module
=
module_need
(
mixer
,
"audio mixer"
,
NULL
,
false
);
mixer
->
module
=
module_need
(
mixer
,
"audio mixer"
,
NULL
,
false
);
if
(
mixer
->
module
==
NULL
)
if
(
mixer
->
module
==
NULL
)
{
{
msg_Err
(
mixer
,
"no suitable audio mixer"
);
vlc_object_release
(
mixer
);
vlc_object_release
(
mixer
);
mixer
=
NULL
;
mixer
=
NULL
;
}
}
...
@@ -75,5 +74,6 @@ void aout_MixerDelete(audio_mixer_t *mixer)
...
@@ -75,5 +74,6 @@ void aout_MixerDelete(audio_mixer_t *mixer)
*/
*/
void
aout_MixerRun
(
audio_mixer_t
*
mixer
,
block_t
*
block
,
float
amp
)
void
aout_MixerRun
(
audio_mixer_t
*
mixer
,
block_t
*
block
,
float
amp
)
{
{
mixer
->
mix
(
mixer
,
block
,
amp
);
if
(
mixer
!=
NULL
)
mixer
->
mix
(
mixer
,
block
,
amp
);
}
}
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