Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
for( NSString * key in [options allKeys] )
{
- libvlc_media_add_option(p_md, [[NSString stringWithFormat:@"%@=#%@", key, [options objectForKey:key]] UTF8String]);
+ if ( [options objectForKey:key] != [NSNull null] )
+ libvlc_media_add_option(p_md, [[NSString stringWithFormat:@"%@=%@", key, [options objectForKey:key]] UTF8String]);
+ else
+ libvlc_media_add_option(p_md, [[NSString stringWithFormat:@"%@", key] UTF8String]);
+
}
return [VLCMedia mediaWithLibVLCMediaDescriptor:p_md];
}