Commit 0c9a964b authored by Rafaël Carré's avatar Rafaël Carré
Browse files

Revert "Avoid using vlc_object_find() when not needed"

This reverts commit ee6f60d7.
This case is already handled in vlc_object_find()
parent dd61f37b
...@@ -131,14 +131,7 @@ void __vout_OSDMessage( vlc_object_t *p_caller, int i_channel, ...@@ -131,14 +131,7 @@ void __vout_OSDMessage( vlc_object_t *p_caller, int i_channel,
if( !config_GetInt( p_caller, "osd" ) ) return; if( !config_GetInt( p_caller, "osd" ) ) return;
if( p_caller->i_object_type == VLC_OBJECT_VOUT ) p_vout = vlc_object_find( p_caller, VLC_OBJECT_VOUT, FIND_ANYWHERE );
{
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 ) if( p_vout )
{ {
va_start( args, psz_format ); va_start( args, psz_format );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment