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
0ba7d3d9
Commit
0ba7d3d9
authored
Jun 09, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cosmetic change: aout_InputIsEmpty -> aout_DecIsEmpty
parent
a3107ff0
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
10 deletions
+11
-10
src/audio_output/aout_internal.h
src/audio_output/aout_internal.h
+1
-1
src/audio_output/dec.c
src/audio_output/dec.c
+9
-0
src/audio_output/input.c
src/audio_output/input.c
+0
-8
src/input/decoder.c
src/input/decoder.c
+1
-1
No files found.
src/audio_output/aout_internal.h
View file @
0ba7d3d9
...
@@ -100,7 +100,6 @@ int aout_InputDelete( aout_instance_t * p_aout, aout_input_t * p_input );
...
@@ -100,7 +100,6 @@ int aout_InputDelete( aout_instance_t * p_aout, aout_input_t * p_input );
int
aout_InputPlay
(
aout_instance_t
*
p_aout
,
aout_input_t
*
p_input
,
int
aout_InputPlay
(
aout_instance_t
*
p_aout
,
aout_input_t
*
p_input
,
aout_buffer_t
*
p_buffer
,
int
i_input_rate
);
aout_buffer_t
*
p_buffer
,
int
i_input_rate
);
void
aout_InputCheckAndRestart
(
aout_instance_t
*
p_aout
,
aout_input_t
*
p_input
);
void
aout_InputCheckAndRestart
(
aout_instance_t
*
p_aout
,
aout_input_t
*
p_input
);
bool
aout_InputIsEmpty
(
aout_instance_t
*
p_aout
,
aout_input_t
*
p_input
);
/* From filters.c : */
/* From filters.c : */
int
aout_FiltersCreatePipeline
(
aout_instance_t
*
,
filter_t
**
,
int
*
,
int
aout_FiltersCreatePipeline
(
aout_instance_t
*
,
filter_t
**
,
int
*
,
...
@@ -145,6 +144,7 @@ int aout_DecPlay( aout_instance_t *, aout_input_t *, aout_buffer_t *, int i_inpu
...
@@ -145,6 +144,7 @@ int aout_DecPlay( aout_instance_t *, aout_input_t *, aout_buffer_t *, int i_inpu
int
aout_DecGetResetLost
(
aout_instance_t
*
,
aout_input_t
*
);
int
aout_DecGetResetLost
(
aout_instance_t
*
,
aout_input_t
*
);
void
aout_DecChangePause
(
aout_instance_t
*
,
aout_input_t
*
,
bool
b_paused
,
mtime_t
i_date
);
void
aout_DecChangePause
(
aout_instance_t
*
,
aout_input_t
*
,
bool
b_paused
,
mtime_t
i_date
);
void
aout_DecFlush
(
aout_instance_t
*
,
aout_input_t
*
);
void
aout_DecFlush
(
aout_instance_t
*
,
aout_input_t
*
);
bool
aout_DecIsEmpty
(
aout_instance_t
*
p_aout
,
aout_input_t
*
p_input
);
/* Audio output locking */
/* Audio output locking */
...
...
src/audio_output/dec.c
View file @
0ba7d3d9
...
@@ -287,3 +287,12 @@ void aout_DecFlush( aout_instance_t *p_aout, aout_input_t *p_input )
...
@@ -287,3 +287,12 @@ void aout_DecFlush( aout_instance_t *p_aout, aout_input_t *p_input )
aout_unlock_input_fifos
(
p_aout
);
aout_unlock_input_fifos
(
p_aout
);
}
}
bool
aout_DecIsEmpty
(
aout_instance_t
*
p_aout
,
aout_input_t
*
p_input
)
{
mtime_t
end_date
;
aout_lock_input_fifos
(
p_aout
);
end_date
=
aout_FifoNextStart
(
&
p_input
->
mixer
.
fifo
);
aout_unlock_input_fifos
(
p_aout
);
return
end_date
<=
mdate
();
}
src/audio_output/input.c
View file @
0ba7d3d9
...
@@ -721,14 +721,6 @@ int aout_InputPlay( aout_instance_t * p_aout, aout_input_t * p_input,
...
@@ -721,14 +721,6 @@ int aout_InputPlay( aout_instance_t * p_aout, aout_input_t * p_input,
return
0
;
return
0
;
}
}
bool
aout_InputIsEmpty
(
aout_instance_t
*
p_aout
,
aout_input_t
*
p_input
)
{
aout_lock_input_fifos
(
p_aout
);
bool
is_empty
=
date_Get
(
&
p_input
->
mixer
.
fifo
.
end_date
)
<=
mdate
();
aout_unlock_input_fifos
(
p_aout
);
return
is_empty
;
}
/*****************************************************************************
/*****************************************************************************
* static functions
* static functions
*****************************************************************************/
*****************************************************************************/
...
...
src/input/decoder.c
View file @
0ba7d3d9
...
@@ -428,7 +428,7 @@ bool input_DecoderIsEmpty( decoder_t * p_dec )
...
@@ -428,7 +428,7 @@ bool input_DecoderIsEmpty( decoder_t * p_dec )
if
(
p_dec
->
fmt_out
.
i_cat
==
VIDEO_ES
&&
p_owner
->
p_vout
)
if
(
p_dec
->
fmt_out
.
i_cat
==
VIDEO_ES
&&
p_owner
->
p_vout
)
b_empty
=
vout_IsEmpty
(
p_owner
->
p_vout
);
b_empty
=
vout_IsEmpty
(
p_owner
->
p_vout
);
else
if
(
p_dec
->
fmt_out
.
i_cat
==
AUDIO_ES
&&
p_owner
->
p_aout
)
else
if
(
p_dec
->
fmt_out
.
i_cat
==
AUDIO_ES
&&
p_owner
->
p_aout
)
b_empty
=
aout_
Input
IsEmpty
(
p_owner
->
p_aout
,
p_owner
->
p_aout_input
);
b_empty
=
aout_
Dec
IsEmpty
(
p_owner
->
p_aout
,
p_owner
->
p_aout_input
);
vlc_mutex_unlock
(
&
p_owner
->
lock
);
vlc_mutex_unlock
(
&
p_owner
->
lock
);
}
}
return
b_empty
;
return
b_empty
;
...
...
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