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
4a8a63dd
Commit
4a8a63dd
authored
Dec 15, 1999
by
Michel Kaempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* audio_decoder/audio_decoder.c :
- Test d'une nouvelle m�thode de synchro ;
parent
7cee752c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
src/audio_decoder/audio_decoder.c
src/audio_decoder/audio_decoder.c
+11
-0
No files found.
src/audio_decoder/audio_decoder.c
View file @
4a8a63dd
...
...
@@ -846,6 +846,15 @@ static void RunThread( adec_thread_t * p_adec )
{
vlc_cond_wait
(
&
p_adec
->
p_aout_fifo
->
data_wait
,
&
p_adec
->
p_aout_fifo
->
data_lock
);
}
if
(
DECODER_FIFO_START
(
p_adec
->
fifo
)
->
b_has_pts
)
{
p_adec
->
p_aout_fifo
->
date
[
p_adec
->
p_aout_fifo
->
l_end_frame
]
=
DECODER_FIFO_START
(
p_adec
->
fifo
)
->
i_pts
;
DECODER_FIFO_START
(
p_adec
->
fifo
)
->
b_has_pts
=
0
;
}
else
{
p_adec
->
p_aout_fifo
->
date
[
p_adec
->
p_aout_fifo
->
l_end_frame
]
=
LAST_MDATE
;
}
vlc_mutex_unlock
(
&
p_adec
->
p_aout_fifo
->
data_lock
);
/* Decoding the frames */
...
...
@@ -853,6 +862,7 @@ static void RunThread( adec_thread_t * p_adec )
{
vlc_mutex_lock
(
&
p_adec
->
p_aout_fifo
->
data_lock
);
/* Frame 1 */
/*
if ( DECODER_FIFO_START(p_adec->fifo)->b_has_pts )
{
p_adec->p_aout_fifo->date[p_adec->p_aout_fifo->l_end_frame] = DECODER_FIFO_START(p_adec->fifo)->i_pts;
...
...
@@ -862,6 +872,7 @@ static void RunThread( adec_thread_t * p_adec )
{
p_adec->p_aout_fifo->date[p_adec->p_aout_fifo->l_end_frame] = LAST_MDATE;
}
*/
p_adec
->
p_aout_fifo
->
l_end_frame
=
(
p_adec
->
p_aout_fifo
->
l_end_frame
+
1
)
&
AOUT_FIFO_SIZE
;
/* Frame 2 */
p_adec
->
p_aout_fifo
->
date
[
p_adec
->
p_aout_fifo
->
l_end_frame
]
=
LAST_MDATE
;
...
...
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