Commit 5e07008c authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

macosx: Don't try to guess a name anymore. This is now done in the core.

(cherry picked from commit 28fd4de9)
Signed-off-by: default avatarDerk-Jan Hartman <hartman@videolan.org>
parent 8221f20d
......@@ -1064,8 +1064,6 @@
}
}
}
/* If no name, then make a guess */
if( !o_name) o_name = [[NSFileManager defaultManager] displayNameAtPath: o_uri];
if( [[NSFileManager defaultManager] fileExistsAtPath:o_uri isDirectory:&b_dir] && b_dir &&
[[NSWorkspace sharedWorkspace] getFileSystemInfoForPath: o_uri isRemovable: &b_rem
......@@ -1087,7 +1085,7 @@
o_uri = o_temp;
}
p_input = input_item_New( p_playlist, [o_uri fileSystemRepresentation], [o_name UTF8String] );
p_input = input_item_New( p_playlist, [o_uri fileSystemRepresentation], o_name ? [o_name UTF8String] : NULL );
if( !p_input )
{
pl_Release( p_intf );
......
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