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
1aa4230a
Commit
1aa4230a
authored
Sep 02, 2006
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix refcount issues and only vlc_object_find when needed
parent
6a630a52
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
4 deletions
+18
-4
src/video_output/video_output.c
src/video_output/video_output.c
+18
-4
No files found.
src/video_output/video_output.c
View file @
1aa4230a
...
...
@@ -743,7 +743,7 @@ static void RunThread( vout_thread_t *p_vout)
subpicture_t
*
p_subpic
=
NULL
;
/* subpicture pointer */
input_thread_t
*
p_input
=
NULL
;
/* Parent input, if it exists */
input_thread_t
*
p_input
=
NULL
;
/* Parent input, if it exists */
vlc_value_t
val
;
vlc_bool_t
b_drop_late
;
...
...
@@ -780,12 +780,20 @@ static void RunThread( vout_thread_t *p_vout)
display_date
=
0
;
current_date
=
mdate
();
p_input
=
NULL
;
if
(
p_input
&&
p_input
->
b_die
)
{
vlc_object_release
(
p_input
);
p_input
=
NULL
;
}
i_loops
++
;
if
(
i_loops
%
20
==
0
)
{
p_input
=
vlc_object_find
(
p_vout
,
VLC_OBJECT_INPUT
,
FIND_PARENT
);
if
(
!
p_input
)
{
p_input
=
vlc_object_find
(
p_vout
,
VLC_OBJECT_INPUT
,
FIND_PARENT
);
}
if
(
p_input
)
{
vlc_mutex_lock
(
&
p_input
->
counters
.
counters_lock
);
...
...
@@ -796,7 +804,6 @@ static void RunThread( vout_thread_t *p_vout)
i_displayed
,
NULL
);
i_displayed
=
i_lost
=
0
;
vlc_mutex_unlock
(
&
p_input
->
counters
.
counters_lock
);
vlc_object_release
(
p_input
);
}
}
#if 0
...
...
@@ -1045,8 +1052,10 @@ static void RunThread( vout_thread_t *p_vout)
if
(
display_date
>
0
)
{
if
(
!
p_input
)
{
p_input
=
vlc_object_find
(
p_vout
,
VLC_OBJECT_INPUT
,
FIND_PARENT
);
}
p_subpic
=
spu_SortSubpictures
(
p_vout
->
p_spu
,
display_date
,
p_input
?
var_GetBool
(
p_input
,
"state"
)
==
PAUSE_S
:
VLC_FALSE
);
}
...
...
@@ -1197,6 +1206,11 @@ static void RunThread( vout_thread_t *p_vout)
}
}
if
(
p_input
)
{
vlc_object_release
(
p_input
);
}
/*
* Error loop - wait until the thread destruction is requested
*/
...
...
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