Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
1c4fe75a
Commit
1c4fe75a
authored
Jul 02, 2006
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make sure that we don't use deleted objects
parent
a38975fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
14 deletions
+22
-14
src/video_output/video_output.c
src/video_output/video_output.c
+22
-14
No files found.
src/video_output/video_output.c
View file @
1c4fe75a
...
...
@@ -701,6 +701,8 @@ static void RunThread( vout_thread_t *p_vout)
vlc_value_t
val
;
vlc_bool_t
b_drop_late
;
int
i_displayed
=
0
,
i_lost
=
0
,
i_loops
=
0
;
/*
* Initialize thread
*/
...
...
@@ -720,8 +722,6 @@ static void RunThread( vout_thread_t *p_vout)
return
;
}
p_input
=
vlc_object_find
(
p_vout
,
VLC_OBJECT_INPUT
,
FIND_PARENT
);
/*
* Main loop - it is not executed if an error occurred during
* initialization
...
...
@@ -733,6 +733,23 @@ static void RunThread( vout_thread_t *p_vout)
display_date
=
0
;
current_date
=
mdate
();
i_loops
++
;
if
(
i_loops
%
20
==
0
)
{
p_input
=
vlc_object_find
(
p_vout
,
VLC_OBJECT_INPUT
,
FIND_PARENT
);
if
(
p_input
)
{
vlc_mutex_lock
(
&
p_input
->
counters
.
counters_lock
);
stats_UpdateInteger
(
p_vout
,
p_input
->
counters
.
p_lost_pictures
,
i_lost
,
NULL
);
stats_UpdateInteger
(
p_vout
,
p_input
->
counters
.
p_displayed_pictures
,
i_displayed
,
NULL
);
i_displayed
=
i_lost
=
0
;
vlc_mutex_unlock
(
&
p_input
->
counters
.
counters_lock
);
vlc_object_release
(
p_input
);
}
}
#if 0
p_vout->c_loops++;
if( !(p_vout->c_loops % VOUT_STATS_NB_LOOPS) )
...
...
@@ -819,10 +836,7 @@ static void RunThread( vout_thread_t *p_vout)
}
msg_Warn
(
p_vout
,
"late picture skipped ("
I64Fd
")"
,
current_date
-
display_date
);
vlc_mutex_lock
(
&
p_input
->
counters
.
counters_lock
);
stats_UpdateInteger
(
p_vout
,
p_input
->
counters
.
p_lost_pictures
,
1
,
NULL
);
vlc_mutex_unlock
(
&
p_input
->
counters
.
counters_lock
);
i_lost
++
;
vlc_mutex_unlock
(
&
p_vout
->
picture_lock
);
continue
;
...
...
@@ -845,10 +859,7 @@ static void RunThread( vout_thread_t *p_vout)
p_picture
->
i_status
=
DESTROYED_PICTURE
;
p_vout
->
i_heap_size
--
;
}
vlc_mutex_lock
(
&
p_input
->
counters
.
counters_lock
);
stats_UpdateInteger
(
p_vout
,
p_input
->
counters
.
p_lost_pictures
,
1
,
NULL
);
vlc_mutex_unlock
(
&
p_input
->
counters
.
counters_lock
);
i_lost
++
;
msg_Warn
(
p_vout
,
"vout warning: early picture skipped "
"("
I64Fd
")"
,
display_date
-
current_date
-
p_vout
->
i_pts_delay
);
...
...
@@ -906,10 +917,7 @@ static void RunThread( vout_thread_t *p_vout)
/*
* Perform rendering
*/
vlc_mutex_lock
(
&
p_input
->
counters
.
counters_lock
);
stats_UpdateInteger
(
p_vout
,
p_input
->
counters
.
p_displayed_pictures
,
1
,
NULL
);
vlc_mutex_unlock
(
&
p_input
->
counters
.
counters_lock
);
i_displayed
++
;
p_directbuffer
=
vout_RenderPicture
(
p_vout
,
p_picture
,
p_subpic
);
/*
...
...
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