Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
6148ec64
Commit
6148ec64
authored
Jun 26, 2009
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: Fix file:// in the open panel
It's either paths or uris.
parent
770f625a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
15 deletions
+13
-15
modules/gui/macosx/open.m
modules/gui/macosx/open.m
+13
-15
No files found.
modules/gui/macosx/open.m
View file @
6148ec64
...
...
@@ -45,6 +45,8 @@
#import "output.h"
#import "eyetv.h"
#include <vlc_url.h>
#define setEyeTVUnconnected \
[o_capture_lbl setStringValue: _NS("No device connected")]; \
[o_capture_long_lbl setStringValue: _NS("VLC could not detect any EyeTV compatible device.\n\nCheck the device's connection, make sure that the latest EyeTV software is installed and try again.")]; \
...
...
@@ -511,30 +513,26 @@ static VLCOpen *_o_sharedMainInstance = nil;
-
(
void
)
openFilePathChanged
:(
NSNotification
*
)
o_notification
{
NSString
*
o_mrl_string
;
NSString
*
o_filename
=
[
o_file_path
stringValue
];
NSString
*
o_ext
=
[
o_filename
pathExtension
];
bool
b_stream
=
[
o_file_stream
state
];
BOOL
b_dir
=
NO
;
[[
NSFileManager
defaultManager
]
fileExistsAtPath
:
o_filename
isDirectory
:
&
b_dir
];
char
*
psz_uri
=
make_URI
([
o_filename
UTF8String
]);
if
(
!
psz_uri
)
return
;
NSMutableString
*
o_mrl_string
=
[
NSMutableString
stringWithUTF8String
:
psz_uri
];
NSRange
offile
=
[
o_mrl_string
rangeOfString
:
@"file"
];
free
(
psz_uri
);
if
(
b_dir
)
{
o_mrl_string
=
[
NSString
stringWithFormat
:
@"directory://%@/"
,
o_filename
];
[
o_mrl_string
replaceCharactersInRange
:
offile
withString
:
@"directory"
];
}
else
if
(
[
o_ext
isEqualToString
:
@"bin"
]
||
[
o_ext
isEqualToString
:
@"cue"
]
||
[
o_ext
isEqualToString
:
@"vob"
]
||
[
o_ext
isEqualToString
:
@"iso"
]
)
{
o_mrl_string
=
o_filename
;
}
else
else
if
(
b_stream
)
{
o_mrl_string
=
[
NSString
stringWithFormat
:
@"%s://%@"
,
b_stream
?
"stream"
:
"file"
,
o_filename
];
[
o_mrl_string
replaceCharactersInRange
:
offile
withString
:
@"stream"
];
}
[
o_mrl
setStringValue
:
o_mrl_string
];
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment