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
68a032f9
Commit
68a032f9
authored
Apr 10, 2010
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mozilla: More (final?) Win32 compile fixes for XulRunner 1.9.2
parent
2903fb79
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
9 deletions
+10
-9
projects/mozilla/control/npolibvlc.cpp
projects/mozilla/control/npolibvlc.cpp
+6
-6
projects/mozilla/support/npwin.cpp
projects/mozilla/support/npwin.cpp
+1
-1
projects/mozilla/vlcplugin.cpp
projects/mozilla/vlcplugin.cpp
+3
-2
No files found.
projects/mozilla/control/npolibvlc.cpp
View file @
68a032f9
...
...
@@ -57,7 +57,7 @@ NPVariant copyNPVariant(const NPVariant& original)
NPVariant
res
;
if
(
NPVARIANT_IS_STRING
(
original
))
STRINGZ_TO_NPVARIANT
(
strdup
(
NPVARIANT_TO_STRING
(
original
).
utf8c
haracters
),
res
);
STRINGZ_TO_NPVARIANT
(
strdup
(
NPVARIANT_TO_STRING
(
original
).
UTF8C
haracters
),
res
);
else
if
(
NPVARIANT_IS_INT32
(
original
))
INT32_TO_NPVARIANT
(
NPVARIANT_TO_INT32
(
original
),
res
);
else
if
(
NPVARIANT_IS_DOUBLE
(
original
))
...
...
@@ -1639,7 +1639,7 @@ LibvlcMarqueeNPObject::setProperty(int index, const NPVariant &value)
case
ID_marquee_position
:
if
(
!
NPVARIANT_IS_STRING
(
value
)
||
!
position_byname
(
NPVARIANT_TO_STRING
(
value
).
utf8c
haracters
,
i
)
)
!
position_byname
(
NPVARIANT_TO_STRING
(
value
).
UTF8C
haracters
,
i
)
)
return
INVOKERESULT_INVALID_VALUE
;
libvlc_video_set_marquee_int
(
p_md
,
libvlc_marquee_Position
,
i
);
...
...
@@ -1785,7 +1785,7 @@ LibvlcLogoNPObject::setProperty(int index, const NPVariant &value)
case
ID_logo_position
:
if
(
!
NPVARIANT_IS_STRING
(
value
)
||
!
position_byname
(
NPVARIANT_TO_STRING
(
value
).
utf8c
haracters
,
i
)
)
!
position_byname
(
NPVARIANT_TO_STRING
(
value
).
UTF8C
haracters
,
i
)
)
return
INVOKERESULT_INVALID_VALUE
;
libvlc_video_set_logo_int
(
p_md
,
libvlc_logo_position
,
i
);
...
...
@@ -1843,7 +1843,7 @@ LibvlcLogoNPObject::invoke(int index, const NPVariant *args,
{
if
(
!
NPVARIANT_IS_STRING
(
args
[
i
])
)
return
INVOKERESULT_INVALID_VALUE
;
len
+=
NPVARIANT_TO_STRING
(
args
[
i
]).
utf8l
ength
+
1
;
len
+=
NPVARIANT_TO_STRING
(
args
[
i
]).
UTF8L
ength
+
1
;
}
buf
=
(
char
*
)
malloc
(
len
+
1
);
...
...
@@ -1853,8 +1853,8 @@ LibvlcLogoNPObject::invoke(int index, const NPVariant *args,
for
(
h
=
buf
,
i
=
0
;
i
<
argCount
;
++
i
)
{
if
(
i
)
*
h
++=
';'
;
len
=
NPVARIANT_TO_STRING
(
args
[
i
]).
utf8l
ength
;
memcpy
(
h
,
NPVARIANT_TO_STRING
(
args
[
i
]).
utf8c
haracters
,
len
);
len
=
NPVARIANT_TO_STRING
(
args
[
i
]).
UTF8L
ength
;
memcpy
(
h
,
NPVARIANT_TO_STRING
(
args
[
i
]).
UTF8C
haracters
,
len
);
h
+=
len
;
}
*
h
=
'\0'
;
...
...
projects/mozilla/support/npwin.cpp
View file @
68a032f9
...
...
@@ -544,7 +544,7 @@ const char* NPN_UserAgent(NPP instance)
/* allocates memory from the Navigator's memory space. Necessary so that
* saved instance data may be freed by Navigator when exiting.
*/
void
*
NPN_MemAlloc
(
uint32
size
)
void
*
NPN_MemAlloc
(
uint32
_t
size
)
{
return
g_pNavigatorFuncs
->
memalloc
(
size
);
}
...
...
projects/mozilla/vlcplugin.cpp
View file @
68a032f9
...
...
@@ -36,6 +36,7 @@
#include "control/npolibvlc.h"
#include <ctype.h>
#if defined(XP_UNIX)
# include <pthread.h>
#elif defined(XP_WIN)
...
...
@@ -236,7 +237,7 @@ inline EventObj::event_t EventObj::find_event(const char *s) const
bool
EventObj
::
insert
(
const
NPString
&
s
,
NPObject
*
l
,
bool
b
)
{
event_t
e
=
find_event
(
s
.
utf8c
haracters
);
event_t
e
=
find_event
(
s
.
UTF8C
haracters
);
if
(
e
>=
maxbit
()
)
return
false
;
...
...
@@ -261,7 +262,7 @@ bool EventObj::insert(const NPString &s, NPObject *l, bool b)
bool
EventObj
::
remove
(
const
NPString
&
s
,
NPObject
*
l
,
bool
b
)
{
event_t
e
=
find_event
(
s
.
utf8c
haracters
);
event_t
e
=
find_event
(
s
.
UTF8C
haracters
);
if
(
e
>=
maxbit
()
||
!
get
(
e
)
)
return
false
;
...
...
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