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
3435a2b9
Commit
3435a2b9
authored
Aug 09, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
audio_output: Assert on input lock state.
parent
bf6e931d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
src/audio_output/input.c
src/audio_output/input.c
+6
-0
No files found.
src/audio_output/input.c
View file @
3435a2b9
...
...
@@ -34,6 +34,7 @@
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <assert.h>
#include <vlc_input.h>
/* for input_thread_t and i_pts_delay */
...
...
@@ -47,6 +48,9 @@
/** FIXME: Ugly but needed to access the counters */
#include "input/input_internal.h"
#define AOUT_ASSERT_MIXER_LOCKED vlc_assert_locked( &p_aout->mixer_lock )
#define AOUT_ASSERT_INPUT_LOCKED vlc_assert_locked( &p_input->lock )
static
void
inputFailure
(
aout_instance_t
*
,
aout_input_t
*
,
const
char
*
);
static
void
inputDrop
(
aout_instance_t
*
,
aout_input_t
*
,
aout_buffer_t
*
);
static
void
inputResamplingStop
(
aout_input_t
*
p_input
);
...
...
@@ -447,6 +451,7 @@ int aout_InputNew( aout_instance_t * p_aout, aout_input_t * p_input )
*****************************************************************************/
int
aout_InputDelete
(
aout_instance_t
*
p_aout
,
aout_input_t
*
p_input
)
{
AOUT_ASSERT_MIXER_LOCKED
;
if
(
p_input
->
b_error
)
return
0
;
aout_FiltersDestroyPipeline
(
p_aout
,
p_input
->
pp_filters
,
...
...
@@ -471,6 +476,7 @@ int aout_InputPlay( aout_instance_t * p_aout, aout_input_t * p_input,
aout_buffer_t
*
p_buffer
,
int
i_input_rate
)
{
mtime_t
start_date
;
AOUT_ASSERT_INPUT_LOCKED
;
if
(
p_input
->
b_restart
)
{
...
...
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