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
350b1da9
Commit
350b1da9
authored
Oct 08, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed decoder_GetDisplayDate while buffering.
parent
25a8f939
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
5 deletions
+23
-5
modules/codec/avcodec/video.c
modules/codec/avcodec/video.c
+5
-2
modules/codec/quicktime.c
modules/codec/quicktime.c
+11
-2
src/input/decoder.c
src/input/decoder.c
+7
-1
No files found.
modules/codec/avcodec/video.c
View file @
350b1da9
...
...
@@ -590,8 +590,11 @@ picture_t *DecodeVideo( decoder_t *p_dec, block_t **pp_block )
p_sys
->
i_pts
=
p_sys
->
p_ff_pic
->
pts
;
/* Update frame late count (except when doing preroll) */
if
(
p_sys
->
i_pts
&&
decoder_GetDisplayDate
(
p_dec
,
p_sys
->
i_pts
)
<=
mdate
()
&&
!
(
p_block
->
i_flags
&
BLOCK_FLAG_PREROLL
)
)
mtime_t
i_display_date
=
0
;
if
(
!
(
p_block
->
i_flags
&
BLOCK_FLAG_PREROLL
)
)
i_display_date
=
decoder_GetDisplayDate
(
p_dec
,
p_sys
->
i_pts
);
i_display_date
=
0
;
if
(
i_display_date
>
0
&&
i_display_date
<=
mdate
()
)
{
p_sys
->
i_late_frames
++
;
if
(
p_sys
->
i_late_frames
==
1
)
...
...
modules/codec/quicktime.c
View file @
350b1da9
...
...
@@ -573,7 +573,12 @@ static aout_buffer_t *DecodeAudio( decoder_t *p_dec, block_t **pp_block )
if
(
p_sys
->
i_out_frames
<=
0
)
{
p_sys
->
pts
=
p_block
->
i_pts
;
if
(
decoder_GetDisplayDate
(
p_dec
,
p_block
->
i_pts
)
<
mdate
()
)
mtime_t
i_display_date
=
0
;
if
(
!
(
p_block
->
i_flags
&
BLOCK_FLAG_PREROLL
)
)
i_display_date
=
decoder_GetDisplayDate
(
p_dec
,
p_block
->
i_pts
);
if
(
i_display_date
>
0
&&
i_display_date
<
mdate
()
)
{
block_Release
(
p_block
);
*
pp_block
=
NULL
;
...
...
@@ -894,7 +899,11 @@ static picture_t *DecodeVideo( decoder_t *p_dec, block_t **pp_block )
i_pts
=
p_block
->
i_pts
?
p_block
->
i_pts
:
p_block
->
i_dts
;
if
(
decoder_GetDisplayDate
(
p_dec
,
i_pts
)
<
mdate
()
)
mtime_t
i_display_date
=
0
;
if
(
!
(
p_block
->
i_flags
&
BLOCK_FLAG_PREROLL
)
)
i_display_date
=
decoder_GetDisplayDate
(
p_dec
,
i_pts
);
if
(
i_display_date
>
0
&&
i_display_date
<
mdate
()
)
{
p_sys
->
i_late
++
;
}
...
...
src/input/decoder.c
View file @
350b1da9
...
...
@@ -185,8 +185,14 @@ mtime_t decoder_GetDisplayDate( decoder_t *p_dec, mtime_t i_ts )
{
decoder_owner_sys_t
*
p_owner
=
p_dec
->
p_owner
;
if
(
!
p_owner
->
p_clock
)
vlc_mutex_lock
(
&
p_owner
->
lock
);
if
(
p_owner
->
b_buffering
)
i_ts
=
0
;
vlc_mutex_unlock
(
&
p_owner
->
lock
);
if
(
!
p_owner
->
p_clock
||
!
i_ts
)
return
i_ts
;
return
input_clock_GetTS
(
p_owner
->
p_clock
,
NULL
,
p_owner
->
p_input
->
i_pts_delay
,
i_ts
);
}
/* decoder_GetDisplayRate:
...
...
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