Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
9fa62a2c
Commit
9fa62a2c
authored
Apr 10, 2010
by
Nicolas Chauvet
Committed by
Rémi Denis-Courmont
Apr 10, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Untracked API change utf8 to UTF8
Signed-off-by:
Rémi Denis-Courmont
<
remi@remlab.net
>
parent
68472916
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
projects/mozilla/control/npolibvlc.cpp
projects/mozilla/control/npolibvlc.cpp
+2
-2
projects/mozilla/control/nporuntime.cpp
projects/mozilla/control/nporuntime.cpp
+3
-3
projects/mozilla/vlcplugin.cpp
projects/mozilla/vlcplugin.cpp
+5
-5
No files found.
projects/mozilla/control/npolibvlc.cpp
View file @
9fa62a2c
...
...
@@ -967,7 +967,7 @@ LibvlcPlaylistNPObject::invoke(int index, const NPVariant *args,
void
LibvlcPlaylistNPObject
::
parseOptions
(
const
NPString
&
nps
,
int
*
i_options
,
char
***
ppsz_options
)
{
if
(
nps
.
utf8l
ength
)
if
(
nps
.
UTF8L
ength
)
{
char
*
s
=
stringValue
(
nps
);
char
*
val
=
s
;
...
...
@@ -979,7 +979,7 @@ void LibvlcPlaylistNPObject::parseOptions(const NPString &nps,
{
int
nOptions
=
0
;
char
*
end
=
val
+
nps
.
utf8l
ength
;
char
*
end
=
val
+
nps
.
UTF8L
ength
;
while
(
val
<
end
)
{
// skip leading blanks
...
...
projects/mozilla/control/nporuntime.cpp
View file @
9fa62a2c
...
...
@@ -37,11 +37,11 @@
char
*
RuntimeNPObject
::
stringValue
(
const
NPString
&
s
)
{
NPUTF8
*
val
=
static_cast
<
NPUTF8
*>
(
malloc
((
s
.
utf8l
ength
+
1
)
*
sizeof
(
*
val
)));
NPUTF8
*
val
=
static_cast
<
NPUTF8
*>
(
malloc
((
s
.
UTF8L
ength
+
1
)
*
sizeof
(
*
val
)));
if
(
val
)
{
strncpy
(
val
,
s
.
utf8characters
,
s
.
utf8l
ength
);
val
[
s
.
utf8l
ength
]
=
'\0'
;
strncpy
(
val
,
s
.
UTF8Characters
,
s
.
UTF8L
ength
);
val
[
s
.
UTF8L
ength
]
=
'\0'
;
}
return
val
;
}
...
...
projects/mozilla/vlcplugin.cpp
View file @
9fa62a2c
...
...
@@ -449,8 +449,8 @@ NPError VlcPlugin::init(int argc, char* const argn[], char* const argv[])
NPString
script
;
NPVariant
result
;
script
.
utf8c
haracters
=
docLocHref
;
script
.
utf8l
ength
=
sizeof
(
docLocHref
)
-
1
;
script
.
UTF8C
haracters
=
docLocHref
;
script
.
UTF8L
ength
=
sizeof
(
docLocHref
)
-
1
;
if
(
NPN_Evaluate
(
p_browser
,
plugin
,
&
script
,
&
result
)
)
{
...
...
@@ -458,11 +458,11 @@ NPError VlcPlugin::init(int argc, char* const argn[], char* const argv[])
{
NPString
&
location
=
NPVARIANT_TO_STRING
(
result
);
psz_baseURL
=
(
char
*
)
malloc
(
location
.
utf8l
ength
+
1
);
psz_baseURL
=
(
char
*
)
malloc
(
location
.
UTF8L
ength
+
1
);
if
(
psz_baseURL
)
{
strncpy
(
psz_baseURL
,
location
.
utf8characters
,
location
.
utf8l
ength
);
psz_baseURL
[
location
.
utf8l
ength
]
=
'\0'
;
strncpy
(
psz_baseURL
,
location
.
UTF8Characters
,
location
.
UTF8L
ength
);
psz_baseURL
[
location
.
UTF8L
ength
]
=
'\0'
;
}
}
NPN_ReleaseVariantValue
(
&
result
);
...
...
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