Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
7b032f22
Commit
7b032f22
authored
Jun 20, 2011
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: fixed incorrect URL creation (closes #4966)
parent
3c2992fc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
3 deletions
+23
-3
modules/gui/macosx/embeddedwindow.m
modules/gui/macosx/embeddedwindow.m
+8
-1
modules/gui/macosx/misc.m
modules/gui/macosx/misc.m
+15
-2
No files found.
modules/gui/macosx/embeddedwindow.m
View file @
7b032f22
...
...
@@ -32,6 +32,7 @@
#import "embeddedwindow.h"
#import "fspanel.h"
#import "playlist.h"
#import <vlc_url.h>
/* SetSystemUIMode, ... */
#import <Carbon/Carbon.h>
...
...
@@ -904,7 +905,13 @@
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
],
NULL
);
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/misc.m
View file @
7b032f22
...
...
@@ -29,6 +29,7 @@
#import "misc.h"
#import "playlist.h"
#import "controls.h"
#import <vlc_url.h>
/*****************************************************************************
* NSImage (VLCAdditions)
...
...
@@ -510,7 +511,13 @@ static NSMutableArray *blackoutWindows = NULL;
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
],
NULL
);
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
];
}
[(
VLCPlaylist
*
)[[
VLCMain
sharedInstance
]
playlist
]
appendArray
:
o_array
atPos
:
-
1
enqueue
:
NO
];
...
...
@@ -589,7 +596,13 @@ static NSMutableArray *blackoutWindows = NULL;
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
],
NULL
);
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
)
...
...
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