# include "config.h"
#endif
-#include <vlc/vlc.h>
+#include <vlc_common.h>
#include <vlc_vout.h>
#include <vlc_block.h>
#include <vlc_filter.h>
if( !config_GetInt( p_caller, "osd" ) ) return;
- 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 );
-
+ p_vout = vlc_object_find( p_caller, VLC_OBJECT_VOUT, FIND_ANYWHERE );
if( p_vout )
{
va_start( args, psz_format );