Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
ee6f60d7
Commit
ee6f60d7
authored
May 27, 2008
by
Rafaël Carré
Browse files
Avoid using vlc_object_find() when not needed
parent
270e0812
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/video_output/video_text.c
View file @
ee6f60d7
...
...
@@ -131,7 +131,14 @@ void __vout_OSDMessage( vlc_object_t *p_caller, int i_channel,
if
(
!
config_GetInt
(
p_caller
,
"osd"
)
)
return
;
p_vout
=
vlc_object_find
(
p_caller
,
VLC_OBJECT_VOUT
,
FIND_ANYWHERE
);
if
(
p_caller
->
i_object_type
==
VLC_OBJECT_VOUT
)
{
p_vout
=
(
vout_thread_t
*
)
p_caller
;
vlc_object_yield
(
p_vout
);
}
else
p_vout
=
vlc_object_find
(
p_caller
,
VLC_OBJECT_VOUT
,
FIND_ANYWHERE
);
if
(
p_vout
)
{
va_start
(
args
,
psz_format
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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