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
4a80777b
Commit
4a80777b
authored
Oct 29, 2006
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Forward port of rev 17335. Implement versionInfo() method
parent
fc7795f1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
2 deletions
+39
-2
mozilla/control/npolibvlc.cpp
mozilla/control/npolibvlc.cpp
+36
-1
mozilla/control/npolibvlc.h
mozilla/control/npolibvlc.h
+2
-0
mozilla/vlcshell.cpp
mozilla/vlcshell.cpp
+1
-1
No files found.
mozilla/control/npolibvlc.cpp
View file @
4a80777b
...
@@ -97,11 +97,46 @@ RuntimeNPObject::InvokeResult LibvlcRootNPObject::getProperty(int index, NPVaria
...
@@ -97,11 +97,46 @@ RuntimeNPObject::InvokeResult LibvlcRootNPObject::getProperty(int index, NPVaria
const
NPUTF8
*
const
LibvlcRootNPObject
::
methodNames
[]
=
const
NPUTF8
*
const
LibvlcRootNPObject
::
methodNames
[]
=
{
{
/* no methods */
"versionInfo"
,
};
};
const
int
LibvlcRootNPObject
::
methodCount
=
sizeof
(
LibvlcRootNPObject
::
methodNames
)
/
sizeof
(
NPUTF8
*
);
const
int
LibvlcRootNPObject
::
methodCount
=
sizeof
(
LibvlcRootNPObject
::
methodNames
)
/
sizeof
(
NPUTF8
*
);
enum
LibvlcRootNPObjectMethodIds
{
ID_version
,
};
RuntimeNPObject
::
InvokeResult
LibvlcRootNPObject
::
invoke
(
int
index
,
const
NPVariant
*
args
,
uint32_t
argCount
,
NPVariant
&
result
)
{
VlcPlugin
*
p_plugin
=
reinterpret_cast
<
VlcPlugin
*>
(
_instance
->
pdata
);
if
(
p_plugin
)
{
libvlc_exception_t
ex
;
libvlc_exception_init
(
&
ex
);
switch
(
index
)
{
case
ID_version
:
if
(
argCount
==
0
)
{
NPUTF8
*
versionStr
=
NULL
;
versionStr
=
strdup
(
VLC_Version
()
);
if
(
!
versionStr
)
return
INVOKERESULT_GENERIC_ERROR
;
STRINGZ_TO_NPVARIANT
(
versionStr
,
result
);
return
INVOKERESULT_NO_ERROR
;
}
return
INVOKERESULT_NO_SUCH_METHOD
;
default:
return
INVOKERESULT_NO_SUCH_METHOD
;
}
}
return
INVOKERESULT_GENERIC_ERROR
;
}
/*
/*
** implementation of libvlc audio object
** implementation of libvlc audio object
*/
*/
...
...
mozilla/control/npolibvlc.h
View file @
4a80777b
...
@@ -43,6 +43,8 @@ protected:
...
@@ -43,6 +43,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
);
NPObject
*
audioObj
;
NPObject
*
audioObj
;
NPObject
*
inputObj
;
NPObject
*
inputObj
;
NPObject
*
logObj
;
NPObject
*
logObj
;
...
...
mozilla/vlcshell.cpp
View file @
4a80777b
...
@@ -177,7 +177,7 @@ int16 NPP_HandleEvent( NPP instance, void * event )
...
@@ -177,7 +177,7 @@ int16 NPP_HandleEvent( NPP instance, void * event )
}
}
const
NPWindow
*
npwindow
=
p_plugin
->
getWindow
();
const
NPWindow
*
npwindow
=
p_plugin
->
getWindow
();
if
(
needsDisplay
&&
npwindow
->
window
)
if
(
needsDisplay
&&
npwindow
->
window
)
{
{
/* draw the beautiful "No Picture" */
/* draw the beautiful "No Picture" */
...
...
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