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
805a2fd1
Commit
805a2fd1
authored
May 17, 2002
by
Loïc Minier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* video output patch to improve handling of late pictures (by Meuuh)
parent
25cdd31d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
4 deletions
+30
-4
include/config.h
include/config.h
+5
-1
src/video_output/video_output.c
src/video_output/video_output.c
+25
-3
No files found.
include/config.h
View file @
805a2fd1
...
...
@@ -191,7 +191,11 @@
* late, the thread will perform an idle loop. This time should be
* at least VOUT_IDLE_SLEEP plus the time required to render a few
* images, to avoid trashing of decoded images */
#define VOUT_DISPLAY_DELAY ((int)(0.500*CLOCK_FREQ))
#define VOUT_DISPLAY_DELAY ((int)(0.200*CLOCK_FREQ))
/* Pictures which are VOUT_BOGUS_DELAY or more in advance probably have
* a bogus PTS and won't be displayed */
#define VOUT_BOGUS_DELAY ((int)(0.800*CLOCK_FREQ))
/* Delay (in microseconds) before an idle screen is displayed */
#define VOUT_IDLE_DELAY (5*CLOCK_FREQ)
...
...
src/video_output/video_output.c
View file @
805a2fd1
...
...
@@ -5,7 +5,7 @@
* thread, and destroy a previously oppened video output thread.
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* $Id: video_output.c,v 1.17
5 2002/05/06 21:05:26 gbazin
Exp $
* $Id: video_output.c,v 1.17
6 2002/05/17 14:17:05 lool
Exp $
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
*
...
...
@@ -571,8 +571,30 @@ static void RunThread( vout_thread_t *p_vout)
p_picture
->
i_status
=
DESTROYED_PICTURE
;
p_vout
->
i_heap_size
--
;
}
intf_WarnMsg
(
1
,
"vout warning: late picture skipped (%p)"
,
p_picture
);
intf_WarnMsg
(
1
,
"vout warning: late picture skipped (%lld)"
,
current_date
-
display_date
);
vlc_mutex_unlock
(
&
p_vout
->
picture_lock
);
continue
;
}
else
if
(
display_date
>
current_date
+
VOUT_BOGUS_DELAY
)
{
/* Picture is waaay too early: it will be destroyed */
vlc_mutex_lock
(
&
p_vout
->
picture_lock
);
if
(
p_picture
->
i_refcount
)
{
/* Pretend we displayed the picture, but don't destroy
* it since the decoder might still need it. */
p_picture
->
i_status
=
DISPLAYED_PICTURE
;
}
else
{
/* Destroy the picture without displaying it */
p_picture
->
i_status
=
DESTROYED_PICTURE
;
p_vout
->
i_heap_size
--
;
}
intf_WarnMsg
(
1
,
"vout warning: early picture skipped (%lld)"
,
display_date
-
current_date
);
vlc_mutex_unlock
(
&
p_vout
->
picture_lock
);
continue
;
...
...
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