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
aed48363
Commit
aed48363
authored
Jun 14, 2009
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mozilla: don't allocate a zero sized array..
parent
bf355d95
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
1 deletion
+29
-1
projects/mozilla/control/npolibvlc.cpp
projects/mozilla/control/npolibvlc.cpp
+27
-1
projects/mozilla/control/npolibvlc.h
projects/mozilla/control/npolibvlc.h
+2
-0
No files found.
projects/mozilla/control/npolibvlc.cpp
View file @
aed48363
...
@@ -538,10 +538,33 @@ LibvlcInputNPObject::setProperty(int index, const NPVariant &value)
...
@@ -538,10 +538,33 @@ LibvlcInputNPObject::setProperty(int index, const NPVariant &value)
const
NPUTF8
*
const
LibvlcInputNPObject
::
methodNames
[]
=
const
NPUTF8
*
const
LibvlcInputNPObject
::
methodNames
[]
=
{
{
/* no methods */
/* no methods */
"none"
,
};
};
COUNTNAMES
(
LibvlcInputNPObject
,
methodCount
,
methodNames
);
COUNTNAMES
(
LibvlcInputNPObject
,
methodCount
,
methodNames
);
enum
LibvlcInputNPObjectMethodIds
{
ID_none
,
};
RuntimeNPObject
::
InvokeResult
LibvlcInputNPObject
::
invoke
(
int
index
,
const
NPVariant
*
args
,
uint32_t
argCount
,
NPVariant
&
result
)
{
/* is plugin still running */
if
(
isPluginRunning
()
)
{
switch
(
index
)
{
case
ID_none
:
return
INVOKERESULT_NO_SUCH_METHOD
;
default:
;
}
}
return
INVOKERESULT_GENERIC_ERROR
;
}
/*
/*
** implementation of libvlc playlist items object
** implementation of libvlc playlist items object
*/
*/
...
@@ -754,6 +777,9 @@ LibvlcPlaylistNPObject::invoke(int index, const NPVariant *args,
...
@@ -754,6 +777,9 @@ LibvlcPlaylistNPObject::invoke(int index, const NPVariant *args,
char
*
url
=
NULL
;
char
*
url
=
NULL
;
// grab URL
// grab URL
if
(
NPVARIANT_IS_NULL
(
args
[
0
])
)
return
INVOKERESULT_NO_SUCH_METHOD
;
if
(
NPVARIANT_IS_STRING
(
args
[
0
])
)
if
(
NPVARIANT_IS_STRING
(
args
[
0
])
)
{
{
char
*
s
=
stringValue
(
NPVARIANT_TO_STRING
(
args
[
0
]));
char
*
s
=
stringValue
(
NPVARIANT_TO_STRING
(
args
[
0
]));
...
...
projects/mozilla/control/npolibvlc.h
View file @
aed48363
...
@@ -97,6 +97,8 @@ protected:
...
@@ -97,6 +97,8 @@ protected:
static
const
int
methodCount
;
static
const
int
methodCount
;
static
const
NPUTF8
*
const
methodNames
[];
static
const
NPUTF8
*
const
methodNames
[];
InvokeResult
invoke
(
int
index
,
const
NPVariant
*
args
,
uint32_t
argCount
,
NPVariant
&
result
);
};
};
class
LibvlcPlaylistItemsNPObject
:
public
RuntimeNPObject
class
LibvlcPlaylistItemsNPObject
:
public
RuntimeNPObject
...
...
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