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
b34dd4b0
Commit
b34dd4b0
authored
May 24, 2014
by
David Fuhrmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: fix memleak, cosmetics
parent
2fa14379
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
modules/gui/macosx/intf.m
modules/gui/macosx/intf.m
+2
-4
No files found.
modules/gui/macosx/intf.m
View file @
b34dd4b0
...
...
@@ -991,8 +991,6 @@ static VLCMain *_o_sharedMainInstance = nil;
-
(
void
)
application
:(
NSApplication
*
)
o_app
openFiles
:(
NSArray
*
)
o_names
{
char
*
psz_uri
=
vlc_path2uri
([[
o_names
objectAtIndex
:
0
]
UTF8String
],
NULL
);
if
(
launched
==
NO
)
{
if
(
items_at_launch
)
{
int
items
=
[
o_names
count
];
...
...
@@ -1004,6 +1002,8 @@ static VLCMain *_o_sharedMainInstance = nil;
}
}
char
*
psz_uri
=
vlc_path2uri
([[
o_names
objectAtIndex
:
0
]
UTF8String
],
NULL
);
// try to add file as subtitle
if
([
o_names
count
]
==
1
&&
psz_uri
)
{
input_thread_t
*
p_input
=
pl_CurrentInput
(
VLCIntf
);
...
...
@@ -1031,8 +1031,6 @@ static VLCMain *_o_sharedMainInstance = nil;
}
[
o_playlist
appendArray
:
o_result
atPos
:
-
1
enqueue
:
!
config_GetInt
(
VLCIntf
,
"macosx-autoplay"
)];
return
;
}
/* When user click in the Dock icon our double click in the finder */
...
...
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