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

playlist preparse and fetch: return error if appropriate

parent 6a80bb9a
...@@ -203,9 +203,9 @@ int playlist_PreparseEnqueue( playlist_t *p_playlist, input_item_t *p_item ) ...@@ -203,9 +203,9 @@ int playlist_PreparseEnqueue( playlist_t *p_playlist, input_item_t *p_item )
{ {
playlist_private_t *p_sys = pl_priv(p_playlist); playlist_private_t *p_sys = pl_priv(p_playlist);
if( p_sys->p_preparser ) if( unlikely(p_sys->p_preparser == NULL) )
return VLC_ENOMEM;
playlist_preparser_Push( p_sys->p_preparser, p_item ); playlist_preparser_Push( p_sys->p_preparser, p_item );
return VLC_SUCCESS; return VLC_SUCCESS;
} }
...@@ -213,9 +213,9 @@ int playlist_AskForArtEnqueue( playlist_t *p_playlist, input_item_t *p_item ) ...@@ -213,9 +213,9 @@ int playlist_AskForArtEnqueue( playlist_t *p_playlist, input_item_t *p_item )
{ {
playlist_private_t *p_sys = pl_priv(p_playlist); playlist_private_t *p_sys = pl_priv(p_playlist);
if( p_sys->p_fetcher ) if( unlikely(p_sys->p_fetcher == NULL) )
return VLC_ENOMEM;
playlist_fetcher_Push( p_sys->p_fetcher, p_item ); playlist_fetcher_Push( p_sys->p_fetcher, p_item );
return VLC_SUCCESS; return VLC_SUCCESS;
} }
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