msg_Err( p_this, "out of memory" );
return NULL;
}
- vlc_object_attach( p_this, p_menu );
+ vlc_object_yield( p_menu );
+ vlc_object_attach( p_menu, p_this->p_libvlc );
/* Stuff needed for Parser */
p_menu->psz_file = strdup( psz_file );
osd_UpdateState( p_osd->p_state, p_osd->i_x, p_osd->i_y,
p_osd->i_width, p_osd->i_height, NULL );
- vlc_object_yield( p_osd );
- vlc_object_attach( p_osd, p_this->p_libvlc );
-
/* Signal when an update of OSD menu is needed */
var_Create( p_osd, "osd-menu-update", VLC_VAR_BOOL );
var_Create( p_osd, "osd-menu-visible", VLC_VAR_BOOL );