Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
b3016a96
Commit
b3016a96
authored
Jan 18, 2003
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* ./modules/gui/macosx/open.m
- .bin files are now opened as disks, instead of as files
parent
e63ac4f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
4 deletions
+15
-4
modules/gui/macosx/open.m
modules/gui/macosx/open.m
+15
-4
No files found.
modules/gui/macosx/open.m
View file @
b3016a96
...
...
@@ -2,7 +2,7 @@
* open.m: MacOS X plugin for vlc
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* $Id: open.m,v 1.
9 2003/01/18 04:10:5
8 hartman Exp $
* $Id: open.m,v 1.
10 2003/01/18 04:57:0
8 hartman Exp $
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Christophe Massiot <massiot@via.ecp.fr>
...
...
@@ -348,11 +348,22 @@ NSArray *GetEjectableMediaOfClass( const char *psz_class )
{
NSString
*
o_mrl_string
;
NSString
*
o_filename
=
[
o_file_path
stringValue
];
NSString
*
o_ext
=
[
o_filename
pathExtension
];
vlc_bool_t
b_stream
=
[
o_file_stream
state
];
o_mrl_string
=
[
NSString
stringWithFormat
:
@"%s://%@"
,
b_stream
?
"stream"
:
"file"
,
o_filename
];
if
([
o_ext
isEqualToString
:
@"bin"
]
||
[
o_ext
isEqualToString
:
@"cue"
]
||
[
o_ext
isEqualToString
:
@"vob"
]
||
[
o_ext
isEqualToString
:
@"iso"
])
{
o_mrl_string
=
o_filename
;
}
else
{
o_mrl_string
=
[
NSString
stringWithFormat
:
@"%s://%@"
,
b_stream
?
"stream"
:
"file"
,
o_filename
];
}
[
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