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
c03f5fee
Commit
c03f5fee
authored
Oct 04, 2006
by
Damien Fouilleul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- mozilla: misc fixes
parent
06e05c1d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
+20
-2
mozilla/control/npolibvlc.cpp
mozilla/control/npolibvlc.cpp
+19
-0
mozilla/vlcshell.cpp
mozilla/vlcshell.cpp
+1
-2
No files found.
mozilla/control/npolibvlc.cpp
View file @
c03f5fee
...
...
@@ -556,6 +556,7 @@ const NPUTF8 * const LibvlcPlaylistNPObject::methodNames[] =
{
"add"
,
"play"
,
"playItem"
,
"togglePause"
,
"stop"
,
"next"
,
...
...
@@ -570,6 +571,7 @@ enum LibvlcPlaylistNPObjectMethodIds
{
ID_add
,
ID_play
,
ID_playItem
,
ID_togglepause
,
ID_stop
,
ID_next
,
...
...
@@ -695,6 +697,23 @@ RuntimeNPObject::InvokeResult LibvlcPlaylistNPObject::invoke(int index, const NP
}
}
return
INVOKERESULT_NO_SUCH_METHOD
;
case
ID_playItem
:
if
(
(
argCount
==
1
)
&&
isNumberValue
(
args
[
0
])
)
{
libvlc_playlist_play
(
p_plugin
->
getVLC
(),
numberValue
(
args
[
0
]),
0
,
NULL
,
&
ex
);
if
(
libvlc_exception_raised
(
&
ex
)
)
{
NPN_SetException
(
this
,
libvlc_exception_get_message
(
&
ex
));
libvlc_exception_clear
(
&
ex
);
return
INVOKERESULT_GENERIC_ERROR
;
}
else
{
VOID_TO_NPVARIANT
(
result
);
return
INVOKERESULT_NO_ERROR
;
}
}
return
INVOKERESULT_NO_SUCH_METHOD
;
case
ID_togglepause
:
if
(
argCount
==
0
)
{
...
...
mozilla/vlcshell.cpp
View file @
c03f5fee
...
...
@@ -93,8 +93,7 @@ NPError NPP_GetValue( NPP instance, NPPVariable variable, void *value )
return
NPERR_NO_ERROR
;
case
NPPVpluginDescriptionString
:
snprintf
(
psz_desc
,
sizeof
(
psz_desc
)
-
1
,
PLUGIN_DESCRIPTION
,
VLC_Version
()
);
psz_desc
[
sizeof
(
psz_desc
)
-
1
]
=
0
;
snprintf
(
psz_desc
,
sizeof
(
psz_desc
),
PLUGIN_DESCRIPTION
,
VLC_Version
()
);
*
((
char
**
)
value
)
=
psz_desc
;
return
NPERR_NO_ERROR
;
...
...
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