Commit f6f1fa0b authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Attach playlist ASAP

vlc_object_find is not used for the playlist anymore, so this is OK.
parent d20e98fb
......@@ -813,7 +813,6 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
return VLC_EGENERIC;
}
playlist_Activate( p_playlist );
vlc_object_attach( p_playlist, p_libvlc );
/* Add service discovery modules */
psz_modules = var_CreateGetNonEmptyString( p_playlist, "services-discovery" );
......
......@@ -76,6 +76,7 @@ playlist_t * playlist_Create( vlc_object_t *p_parent )
assert( offsetof( playlist_private_t, public_data ) == 0 );
p_playlist = &p->public_data;
vlc_object_attach( p_playlist, p_parent );
TAB_INIT( pl_priv(p_playlist)->i_sds, pl_priv(p_playlist)->pp_sds );
libvlc_priv(p_parent->p_libvlc)->p_playlist = p_playlist;
......
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