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
2604049f
Commit
2604049f
authored
Nov 24, 2013
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: fix drag & drop / double-clicks in Finder to open subtitles files (close #9953)
parent
c6e4493d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
modules/gui/macosx/intf.m
modules/gui/macosx/intf.m
+2
-2
No files found.
modules/gui/macosx/intf.m
View file @
2604049f
...
@@ -999,7 +999,7 @@ static VLCMain *_o_sharedMainInstance = nil;
...
@@ -999,7 +999,7 @@ static VLCMain *_o_sharedMainInstance = nil;
-
(
void
)
application
:(
NSApplication
*
)
o_app
openFiles
:(
NSArray
*
)
o_names
-
(
void
)
application
:(
NSApplication
*
)
o_app
openFiles
:(
NSArray
*
)
o_names
{
{
char
*
psz_uri
=
vlc_path2uri
([[
o_names
objectAtIndex
:
0
]
UTF8String
],
"file"
);
char
*
psz_uri
=
vlc_path2uri
([[
o_names
objectAtIndex
:
0
]
UTF8String
],
NULL
);
if
(
launched
==
NO
)
{
if
(
launched
==
NO
)
{
if
(
items_at_launch
)
{
if
(
items_at_launch
)
{
...
@@ -1017,7 +1017,7 @@ static VLCMain *_o_sharedMainInstance = nil;
...
@@ -1017,7 +1017,7 @@ static VLCMain *_o_sharedMainInstance = nil;
input_thread_t
*
p_input
=
pl_CurrentInput
(
VLCIntf
);
input_thread_t
*
p_input
=
pl_CurrentInput
(
VLCIntf
);
if
(
p_input
)
{
if
(
p_input
)
{
BOOL
b_returned
=
NO
;
BOOL
b_returned
=
NO
;
b_returned
=
input_AddSubtitle
(
p_input
,
psz_uri
,
true
);
b_returned
=
input_AddSubtitle
(
p_input
,
[[
o_names
objectAtIndex
:
0
]
UTF8String
]
,
true
);
vlc_object_release
(
p_input
);
vlc_object_release
(
p_input
);
if
(
!
b_returned
)
{
if
(
!
b_returned
)
{
free
(
psz_uri
);
free
(
psz_uri
);
...
...
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