Commit fbfcdf02 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

macosx: Assert() for special error case.

Note: We should probably throw exception, and handle them a bit more gracefully, as we do in vlc_app.
parent 340a7d38
......@@ -305,11 +305,10 @@ static VLCSimplePrefs *_o_sharedInstance = nil;
[object removeAllItems];
p_item = config_FindConfig( VLC_OBJECT(p_intf), name );
if( !p_item )
{
NSLog( @"serious problem, item not found" );
return;
}
/* serious problem, if no item found */
assert( p_item );
for( int i = 0; i < p_item->i_list; i++ )
{
NSMenuItem *mi;
......@@ -337,11 +336,10 @@ static VLCSimplePrefs *_o_sharedInstance = nil;
[object removeAllItems];
p_item = config_FindConfig( VLC_OBJECT(p_intf), name );
if( !p_item )
{
NSLog( @"serious problem, item not found" );
return;
}
/* serious problem, if no item found */
assert( p_item );
for( int i = 0; i < p_item->i_list; i++ )
{
NSMenuItem *mi;
......
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