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

Use ...NonEmpty... for --open

parent a27a4550
......@@ -1008,8 +1008,8 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
/*
* Get --open argument
*/
psz_val = var_CreateGetString( p_libvlc, "open" );
if ( psz_val != NULL && *psz_val )
psz_val = var_CreateGetNonEmptyString( p_libvlc, "open" );
if ( psz_val != NULL )
{
playlist_t *p_playlist = pl_Hold( p_libvlc );
playlist_AddExt( p_playlist, psz_val, NULL, PLAYLIST_INSERT, 0,
......
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