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
d3ed6bcb
Commit
d3ed6bcb
authored
Jun 18, 2010
by
Sebastien Zwickert
Committed by
Jean-Baptiste Kempf
Jun 18, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gui/macosx: set URL instead of path to ITEM_URL. Fixes #3706
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
6a8df715
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
4 deletions
+27
-4
modules/gui/macosx/intf.m
modules/gui/macosx/intf.m
+9
-1
modules/gui/macosx/open.m
modules/gui/macosx/open.m
+8
-1
modules/gui/macosx/playlist.m
modules/gui/macosx/playlist.m
+10
-2
No files found.
modules/gui/macosx/intf.m
View file @
d3ed6bcb
...
...
@@ -33,6 +33,7 @@
#include <vlc_common.h>
#include <vlc_keys.h>
#include <vlc_dialog.h>
#include <vlc_url.h>
#include <unistd.h>
/* execl() */
#import "intf.h"
...
...
@@ -1044,7 +1045,14 @@ static NSString * VLCToolbarMediaControl = @"VLCToolbarMediaControl";
-
(
BOOL
)
application
:(
NSApplication
*
)
o_app
openFile
:(
NSString
*
)
o_filename
{
BOOL
b_autoplay
=
config_GetInt
(
VLCIntf
,
"macosx-autoplay"
);
NSDictionary
*
o_dic
=
[
NSDictionary
dictionaryWithObjectsAndKeys
:
o_filename
,
@"ITEM_URL"
,
nil
];
char
*
psz_uri
=
make_URI
([
o_filename
UTF8String
]);
if
(
!
psz_uri
)
return
(
FALSE
);
NSDictionary
*
o_dic
=
[
NSDictionary
dictionaryWithObject
:[
NSString
stringWithCString
:
psz_uri
encoding
:
NSUTF8StringEncoding
]
forKey
:
@"ITEM_URL"
];
free
(
psz_uri
);
if
(
b_autoplay
)
[
o_playlist
appendArray
:
[
NSArray
arrayWithObject
:
o_dic
]
atPos
:
-
1
enqueue
:
NO
];
else
...
...
modules/gui/macosx/open.m
View file @
d3ed6bcb
...
...
@@ -963,7 +963,14 @@ static VLCOpen *_o_sharedMainInstance = nil;
for
(
i
=
0
;
i
<
(
int
)[
o_values
count
];
i
++
)
{
NSDictionary
*
o_dic
;
o_dic
=
[
NSDictionary
dictionaryWithObject
:[
o_values
objectAtIndex
:
i
]
forKey
:
@"ITEM_URL"
];
char
*
psz_uri
=
make_URI
([[
o_values
objectAtIndex
:
i
]
UTF8String
]);
if
(
!
psz_uri
)
continue
;
o_dic
=
[
NSDictionary
dictionaryWithObject
:[
NSString
stringWithCString
:
psz_uri
encoding
:
NSUTF8StringEncoding
]
forKey
:
@"ITEM_URL"
];
free
(
psz_uri
);
o_array
=
[
o_array
arrayByAddingObject
:
o_dic
];
}
if
(
b_autoplay
)
...
...
modules/gui/macosx/playlist.m
View file @
d3ed6bcb
...
...
@@ -54,6 +54,8 @@
#import <vlc_osd.h>
#import <vlc_interface.h>
#include <vlc_url.h>
/*****************************************************************************
* VLCPlaylistView implementation
...
...
@@ -1779,8 +1781,14 @@
for
(
i
=
0
;
i
<
(
int
)[
o_values
count
];
i
++
)
{
NSDictionary
*
o_dic
;
o_dic
=
[
NSDictionary
dictionaryWithObject
:[
o_values
objectAtIndex:
i
]
forKey
:
@"ITEM_URL"
];
char
*
psz_uri
=
make_URI
([[
o_values
objectAtIndex
:
i
]
UTF8String
]);
if
(
!
psz_uri
)
continue
;
o_dic
=
[
NSDictionary
dictionaryWithObject
:[
NSString
stringWithCString
:
psz_uri
encoding
:
NSUTF8StringEncoding
]
forKey
:
@"ITEM_URL"
];
free
(
psz_uri
);
o_array
=
[
o_array
arrayByAddingObject
:
o_dic
];
}
...
...
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