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
acf420db
Commit
acf420db
authored
Oct 14, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved vout picture locking scheme.
parent
7e8ca640
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
src/video_output/video_output.c
src/video_output/video_output.c
+5
-4
No files found.
src/video_output/video_output.c
View file @
acf420db
...
@@ -931,10 +931,9 @@ static void* RunThread( vlc_object_t *p_this )
...
@@ -931,10 +931,9 @@ static void* RunThread( vlc_object_t *p_this )
picture_t
*
p_directbuffer
;
picture_t
*
p_directbuffer
;
int
i_index
;
int
i_index
;
/*
/* Find the picture to display (the one with the earliest date). */
* Find the picture to display (the one with the earliest date).
vlc_mutex_lock
(
&
p_vout
->
picture_lock
);
* This operation does not need lock, since only READY_PICTUREs
* are handled. */
for
(
i_index
=
0
;
i_index
<
I_RENDERPICTURES
;
i_index
++
)
for
(
i_index
=
0
;
i_index
<
I_RENDERPICTURES
;
i_index
++
)
{
{
picture_t
*
p_pic
=
PP_RENDERPICTURE
[
i_index
];
picture_t
*
p_pic
=
PP_RENDERPICTURE
[
i_index
];
...
@@ -1014,6 +1013,7 @@ static void* RunThread( vlc_object_t *p_this )
...
@@ -1014,6 +1013,7 @@ static void* RunThread( vlc_object_t *p_this )
p_vout
->
p
->
i_picture_lost
++
;
p_vout
->
p
->
i_picture_lost
++
;
msg_Warn
(
p_vout
,
"late picture skipped (%"
PRId64
")"
,
msg_Warn
(
p_vout
,
"late picture skipped (%"
PRId64
")"
,
current_date
-
display_date
);
current_date
-
display_date
);
vlc_mutex_unlock
(
&
p_vout
->
picture_lock
);
continue
;
continue
;
}
}
...
@@ -1043,6 +1043,7 @@ static void* RunThread( vlc_object_t *p_this )
...
@@ -1043,6 +1043,7 @@ static void* RunThread( vlc_object_t *p_this )
}
}
}
}
}
}
vlc_mutex_unlock
(
&
p_vout
->
picture_lock
);
if
(
p_picture
==
NULL
)
if
(
p_picture
==
NULL
)
i_idle_loops
++
;
i_idle_loops
++
;
...
...
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