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

macosx/wizard: add missing error handling

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