Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
de67c3f7
Commit
de67c3f7
authored
Apr 23, 2010
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed vout_Reset.
parent
a274331e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
src/video_output/video_output.c
src/video_output/video_output.c
+11
-7
No files found.
src/video_output/video_output.c
View file @
de67c3f7
...
...
@@ -567,17 +567,21 @@ void vout_GetResetStatistic( vout_thread_t *p_vout, int *pi_displayed, int *pi_l
pi_displayed
,
pi_lost
);
}
static
void
Flush
(
vout_thread_t
*
vout
,
mtime_t
date
,
bool
below
)
static
void
Flush
(
vout_thread_t
*
vout
,
mtime_t
date
,
bool
reset
,
bool
below
)
{
vlc_assert_locked
(
&
vout
->
p
->
picture_lock
);
vout
->
p
->
step
.
timestamp
=
VLC_TS_INVALID
;
vout
->
p
->
step
.
last
=
VLC_TS_INVALID
;
picture_t
*
last
=
vout
->
p
->
displayed
.
decoded
;
if
(
last
&&
((
below
&&
last
->
date
<=
date
)
||
(
!
below
&&
last
->
date
>=
date
)))
{
vout
->
p
->
step
.
is_requested
=
true
;
if
(
last
)
{
if
(
reset
)
{
picture_Release
(
last
);
vout
->
p
->
displayed
.
decoded
=
NULL
;
}
else
if
((
below
&&
last
->
date
<=
date
)
||
(
!
below
&&
last
->
date
>=
date
))
{
vout
->
p
->
step
.
is_requested
=
true
;
}
}
picture_fifo_Flush
(
vout
->
p
->
decoder_fifo
,
date
,
below
);
}
...
...
@@ -586,7 +590,7 @@ void vout_Flush(vout_thread_t *vout, mtime_t date)
{
vlc_mutex_lock
(
&
vout
->
p
->
picture_lock
);
Flush
(
vout
,
date
,
false
);
Flush
(
vout
,
date
,
false
,
false
);
vlc_cond_signal
(
&
vout
->
p
->
picture_wait
);
vlc_mutex_unlock
(
&
vout
->
p
->
picture_lock
);
...
...
@@ -596,7 +600,7 @@ void vout_Reset(vout_thread_t *vout)
{
vlc_mutex_lock
(
&
vout
->
p
->
picture_lock
);
Flush
(
vout
,
INT64_MAX
,
true
);
Flush
(
vout
,
INT64_MAX
,
true
,
true
);
if
(
vout
->
p
->
decoder_pool
)
picture_pool_NonEmpty
(
vout
->
p
->
decoder_pool
,
true
);
vout
->
p
->
pause
.
is_on
=
false
;
...
...
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