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
aa7c7e37
Commit
aa7c7e37
authored
Oct 10, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added vout_Flush .
parent
7ee4309d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
+23
-0
src/video_output/video_output.c
src/video_output/video_output.c
+17
-0
src/video_output/vout_internal.h
src/video_output/vout_internal.h
+6
-0
No files found.
src/video_output/video_output.c
View file @
aa7c7e37
...
@@ -610,7 +610,24 @@ void vout_GetResetStatistic( vout_thread_t *p_vout, int *pi_displayed, int *pi_l
...
@@ -610,7 +610,24 @@ void vout_GetResetStatistic( vout_thread_t *p_vout, int *pi_displayed, int *pi_l
vlc_object_unlock
(
p_vout
);
vlc_object_unlock
(
p_vout
);
}
}
void
vout_Flush
(
vout_thread_t
*
p_vout
,
mtime_t
i_date
)
{
vlc_mutex_lock
(
&
p_vout
->
picture_lock
);
for
(
int
i
=
0
;
i
<
p_vout
->
render
.
i_pictures
;
i
++
)
{
picture_t
*
p_pic
=
p_vout
->
render
.
pp_picture
[
i
];
if
(
p_pic
->
i_status
==
READY_PICTURE
||
p_pic
->
i_status
==
DISPLAYED_PICTURE
)
{
/* We cannot change picture status if it is in READY_PICTURE state,
* Just make sure they won't be displayed */
if
(
p_pic
->
date
>
i_date
)
p_pic
->
date
=
i_date
;
}
}
vlc_mutex_unlock
(
&
p_vout
->
picture_lock
);
}
/*****************************************************************************
/*****************************************************************************
* InitThread: initialize video output thread
* InitThread: initialize video output thread
*****************************************************************************
*****************************************************************************
...
...
src/video_output/vout_internal.h
View file @
aa7c7e37
...
@@ -105,5 +105,11 @@ void spu_OffsetSubtitleDate( spu_t *p_spu, mtime_t i_duration );
...
@@ -105,5 +105,11 @@ void spu_OffsetSubtitleDate( spu_t *p_spu, mtime_t i_duration );
*/
*/
void
vout_GetResetStatistic
(
vout_thread_t
*
p_vout
,
int
*
pi_displayed
,
int
*
pi_lost
);
void
vout_GetResetStatistic
(
vout_thread_t
*
p_vout
,
int
*
pi_displayed
,
int
*
pi_lost
);
/**
* This function will ensure that all ready/displayed pciture have at most
* the provided dat
*/
void
vout_Flush
(
vout_thread_t
*
p_vout
,
mtime_t
i_date
);
#endif
#endif
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