+ p_input = MRLParse( p_intf, mrl, psz_name );
+
+ char *psz_uri = p_input ? input_item_GetURI( p_input ) : NULL;
+ if( psz_uri && *psz_uri &&
+ playlist_AddInput( p_sys->p_playlist, p_input,
+ PLAYLIST_APPEND, PLAYLIST_END,
+ true, pl_Unlocked) == VLC_SUCCESS )
+ msg_Dbg( p_intf, "requested mrl add: %s", mrl );
+ else
+ msg_Warn( p_intf, "adding mrl failed: %s", mrl );
+ free( psz_uri );
+ if( p_input )
+ vlc_gc_decref( p_input );