Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
95179314
Commit
95179314
authored
May 28, 2002
by
Stéphane Borel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*Added a b_force flag to picture_t so that we can force the display
of an image even if it is late.
parent
a944ebff
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
5 deletions
+10
-5
include/video.h
include/video.h
+2
-1
plugins/mpeg_vdec/vpar_headers.c
plugins/mpeg_vdec/vpar_headers.c
+2
-1
src/video_output/video_output.c
src/video_output/video_output.c
+3
-2
src/video_output/vout_pictures.c
src/video_output/vout_pictures.c
+3
-1
No files found.
include/video.h
View file @
95179314
...
...
@@ -4,7 +4,7 @@
* includes all common video types and constants.
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* $Id: video.h,v 1.5
1
2002/05/
13 21:55:30 fenrir
Exp $
* $Id: video.h,v 1.5
2
2002/05/
28 18:34:42 stef
Exp $
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
*
...
...
@@ -73,6 +73,7 @@ typedef struct picture_s
* the video output thread API, but should never be written directly */
int
i_refcount
;
/* link reference counter */
mtime_t
date
;
/* display date */
boolean_t
b_force
;
/* Picture dynamic properties - those properties can be changed by the
* decoder */
...
...
plugins/mpeg_vdec/vpar_headers.c
View file @
95179314
...
...
@@ -2,7 +2,7 @@
* vpar_headers.c : headers parsing
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: vpar_headers.c,v 1.2
0
2002/05/
1
8 1
7:47
:4
7
s
am
Exp $
* $Id: vpar_headers.c,v 1.2
1
2002/05/
2
8 1
8:34
:4
2
s
tef
Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Stphane Borel <stef@via.ecp.fr>
...
...
@@ -279,6 +279,7 @@ int vpar_ParseHeader( vpar_thread_t * p_vpar )
case
SEQUENCE_END_CODE
:
intf_WarnMsg
(
3
,
"vpar warning: sequence end code received"
);
p_vpar
->
sequence
.
p_backward
->
b_force
=
1
;
ReferenceUpdate
(
p_vpar
,
I_CODING_TYPE
,
NULL
);
return
1
;
...
...
src/video_output/video_output.c
View file @
95179314
...
...
@@ -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
8
2002/05/2
3 22:21:14 sam
Exp $
* $Id: video_output.c,v 1.17
9
2002/05/2
8 18:34:42 stef
Exp $
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
*
...
...
@@ -549,7 +549,8 @@ static void RunThread( vout_thread_t *p_vout)
p_vout
->
p_fps_sample
[
p_vout
->
c_fps_samples
++
%
VOUT_FPS_SAMPLES
]
=
display_date
;
if
(
display_date
<
current_date
+
p_vout
->
render_time
)
if
(
!
p_picture
->
b_force
&&
display_date
<
current_date
+
p_vout
->
render_time
)
{
/* Picture is late: it will be destroyed and the thread
* will directly choose the next picture */
...
...
src/video_output/vout_pictures.c
View file @
95179314
...
...
@@ -2,7 +2,7 @@
* vout_pictures.c : picture management functions
*****************************************************************************
* Copyright (C) 2000 VideoLAN
* $Id: vout_pictures.c,v 1.2
5
2002/05/2
0
1
9
:34:
58 sam
Exp $
* $Id: vout_pictures.c,v 1.2
6
2002/05/2
8
1
8
:34:
42 stef
Exp $
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
...
...
@@ -142,6 +142,7 @@ picture_t *vout_CreatePicture( vout_thread_t *p_vout,
* memory allocation needs to be done */
p_pic
->
i_status
=
RESERVED_PICTURE
;
p_pic
->
i_refcount
=
0
;
p_pic
->
b_force
=
0
;
p_pic
->
b_progressive
=
b_progressive
;
p_pic
->
b_repeat_first_field
=
b_repeat_first_field
;
...
...
@@ -177,6 +178,7 @@ picture_t *vout_CreatePicture( vout_thread_t *p_vout,
p_freepic
->
i_type
=
MEMORY_PICTURE
;
p_freepic
->
i_refcount
=
0
;
p_freepic
->
b_force
=
0
;
p_freepic
->
b_progressive
=
b_progressive
;
p_freepic
->
b_repeat_first_field
=
b_repeat_first_field
;
...
...
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