Commit 111d6a25 authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx/wizard: add missing error handling

(cherry picked from commit 6100eb88)
parent b9dc1b7d
......@@ -1239,11 +1239,9 @@ static VLCWizard *_o_sharedInstance = nil;
UTF8String],
VLC_INPUT_OPTION_TRUSTED );
/* FIXME: playlist_AddInput() can fail */
playlist_AddInput( p_playlist, p_input, PLAYLIST_STOP,
PLAYLIST_END, true, pl_Unlocked );
int returnValue = playlist_AddInput( p_playlist, p_input, PLAYLIST_STOP, PLAYLIST_END, true, pl_Unlocked );
if( x == 0 )
if( x == 0 && returnValue != VLC_SUCCESS)
{
/* play the first item and add the others afterwards */
PL_LOCK;
......
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