Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
47643f0a
Commit
47643f0a
authored
Jun 12, 2006
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/video_output/video_output.c: avoid calling config_GetInt in the main loop.
parent
2ef372ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
src/video_output/video_output.c
src/video_output/video_output.c
+8
-3
No files found.
src/video_output/video_output.c
View file @
47643f0a
...
@@ -701,11 +701,18 @@ static void RunThread( vout_thread_t *p_vout)
...
@@ -701,11 +701,18 @@ static void RunThread( vout_thread_t *p_vout)
subpicture_t
*
p_subpic
=
NULL
;
/* subpicture pointer */
subpicture_t
*
p_subpic
=
NULL
;
/* subpicture pointer */
vlc_value_t
val
;
vlc_bool_t
b_drop_late
;
/*
/*
* Initialize thread
* Initialize thread
*/
*/
p_vout
->
b_error
=
InitThread
(
p_vout
);
p_vout
->
b_error
=
InitThread
(
p_vout
);
var_Create
(
p_vout
,
"drop-late-frames"
,
VLC_VAR_BOOL
|
VLC_VAR_DOINHERIT
);
var_Get
(
p_vout
,
"drop-late-frames"
,
&
val
);
b_drop_late
=
val
.
b_bool
;
/* signal the creation of the vout */
/* signal the creation of the vout */
vlc_thread_ready
(
p_vout
);
vlc_thread_ready
(
p_vout
);
...
@@ -791,12 +798,10 @@ static void RunThread( vout_thread_t *p_vout)
...
@@ -791,12 +798,10 @@ static void RunThread( vout_thread_t *p_vout)
p_vout
->
p_fps_sample
[
p_vout
->
c_fps_samples
++
%
VOUT_FPS_SAMPLES
]
p_vout
->
p_fps_sample
[
p_vout
->
c_fps_samples
++
%
VOUT_FPS_SAMPLES
]
=
display_date
;
=
display_date
;
/* XXX: config_GetInt is slow, but this kind of frame dropping
* should not happen that often. */
if
(
!
p_picture
->
b_force
&&
if
(
!
p_picture
->
b_force
&&
p_picture
!=
p_last_picture
&&
p_picture
!=
p_last_picture
&&
display_date
<
current_date
+
p_vout
->
render_time
&&
display_date
<
current_date
+
p_vout
->
render_time
&&
config_GetInt
(
p_vout
,
"drop-late-frames"
)
)
b_drop_late
)
{
{
/* Picture is late: it will be destroyed and the thread
/* Picture is late: it will be destroyed and the thread
* will directly choose the next picture */
* will directly choose the next picture */
...
...
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