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
0707bc75
Commit
0707bc75
authored
May 30, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove aout_output_t.b_error
parent
13700a22
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
12 deletions
+4
-12
include/vlc_aout.h
include/vlc_aout.h
+0
-3
src/audio_output/common.c
src/audio_output/common.c
+1
-1
src/audio_output/output.c
src/audio_output/output.c
+3
-8
No files found.
include/vlc_aout.h
View file @
0707bc75
...
...
@@ -199,9 +199,6 @@ typedef struct aout_output_t
void
(
*
pf_play
)(
aout_instance_t
*
);
int
(
*
pf_volume_set
)(
aout_instance_t
*
,
audio_volume_t
,
bool
);
int
i_nb_samples
;
/* If b_error == 1, there is no audio output pipeline. */
bool
b_error
;
}
aout_output_t
;
struct
aout_mixer_t
;
...
...
src/audio_output/common.c
View file @
0707bc75
...
...
@@ -95,8 +95,8 @@ aout_instance_t * __aout_New( vlc_object_t * p_parent )
p_aout
->
i_nb_inputs
=
0
;
p_aout
->
mixer_multiplier
=
1
.
0
;
p_aout
->
p_mixer
=
NULL
;
p_aout
->
output
.
b_error
=
1
;
p_aout
->
output
.
b_starving
=
1
;
p_aout
->
output
.
p_module
=
NULL
;
var_Create
(
p_aout
,
"intf-change"
,
VLC_VAR_VOID
);
...
...
src/audio_output/output.c
View file @
0707bc75
...
...
@@ -193,6 +193,7 @@ int aout_OutputNew( aout_instance_t * p_aout,
{
msg_Err
(
p_aout
,
"couldn't create audio output pipeline"
);
module_unneed
(
p_aout
,
p_aout
->
output
.
p_module
);
p_aout
->
output
.
p_module
=
NULL
;
return
-
1
;
}
...
...
@@ -206,8 +207,6 @@ int aout_OutputNew( aout_instance_t * p_aout,
aout_FiltersHintBuffers
(
p_aout
,
p_aout
->
output
.
pp_filters
,
p_aout
->
output
.
i_nb_filters
,
&
p_aout
->
mixer_allocation
);
p_aout
->
output
.
b_error
=
0
;
return
0
;
}
...
...
@@ -218,12 +217,10 @@ int aout_OutputNew( aout_instance_t * p_aout,
*****************************************************************************/
void
aout_OutputDelete
(
aout_instance_t
*
p_aout
)
{
if
(
p_aout
->
output
.
b_error
)
{
return
;
}
if
(
p_aout
->
output
.
p_module
==
NULL
)
module_unneed
(
p_aout
,
p_aout
->
output
.
p_module
);
p_aout
->
output
.
p_module
=
NULL
;
aout_FiltersDestroyPipeline
(
p_aout
,
p_aout
->
output
.
pp_filters
,
p_aout
->
output
.
i_nb_filters
);
...
...
@@ -231,8 +228,6 @@ void aout_OutputDelete( aout_instance_t * p_aout )
aout_lock_output_fifo
(
p_aout
);
aout_FifoDestroy
(
p_aout
,
&
p_aout
->
output
.
fifo
);
aout_unlock_output_fifo
(
p_aout
);
p_aout
->
output
.
b_error
=
true
;
}
/*****************************************************************************
...
...
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