{
playlist_private_t *p_sys = pl_priv(p_playlist);
- if( p_sys->p_preparser )
- playlist_preparser_Push( p_sys->p_preparser, p_item );
-
+ if( unlikely(p_sys->p_preparser == NULL) )
+ return VLC_ENOMEM;
+ playlist_preparser_Push( p_sys->p_preparser, p_item );
return VLC_SUCCESS;
}
{
playlist_private_t *p_sys = pl_priv(p_playlist);
- if( p_sys->p_fetcher )
- playlist_fetcher_Push( p_sys->p_fetcher, p_item );
-
+ if( unlikely(p_sys->p_fetcher == NULL) )
+ return VLC_ENOMEM;
+ playlist_fetcher_Push( p_sys->p_fetcher, p_item );
return VLC_SUCCESS;
}