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
25354a0e
Commit
25354a0e
authored
Jun 19, 2007
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mozilla: Yet more input->media_instance changes.
parent
33316bd2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
22 deletions
+22
-22
mozilla/control/npovlc.cpp
mozilla/control/npovlc.cpp
+22
-22
No files found.
mozilla/control/npovlc.cpp
View file @
25354a0e
...
...
@@ -165,11 +165,11 @@ RuntimeNPObject::InvokeResult VlcNPObject::invoke(int index, const NPVariant *ar
case
ID_fullscreen
:
/* deprecated */
if
(
argCount
==
0
)
{
libvlc_
input_t
*
p_input
=
libvlc_playlist_get_input
(
p_plugin
->
getVLC
(),
&
ex
);
if
(
p_
input
)
libvlc_
media_instance_t
*
p_md
=
libvlc_playlist_get_input
(
p_plugin
->
getVLC
(),
&
ex
);
if
(
p_
md
)
{
libvlc_toggle_fullscreen
(
p_
input
,
&
ex
);
libvlc_
input_free
(
p_input
);
libvlc_toggle_fullscreen
(
p_
md
,
&
ex
);
libvlc_
media_instance_destroy_and_detach
(
p_md
);
if
(
libvlc_exception_raised
(
&
ex
)
)
{
NPN_SetException
(
this
,
libvlc_exception_get_message
(
&
ex
));
...
...
@@ -529,11 +529,11 @@ RuntimeNPObject::InvokeResult VlcNPObject::invoke(int index, const NPVariant *ar
case
ID_get_length
:
/* deprecated */
if
(
argCount
==
0
)
{
libvlc_
input_t
*
p_input
=
libvlc_playlist_get_input
(
p_plugin
->
getVLC
(),
&
ex
);
if
(
p_
input
)
libvlc_
media_instance_t
*
p_md
=
libvlc_playlist_get_input
(
p_plugin
->
getVLC
(),
&
ex
);
if
(
p_
md
)
{
vlc_int64_t
val
=
libvlc_
input_get_length
(
p_input
,
&
ex
);
libvlc_
input_free
(
p_input
);
vlc_int64_t
val
=
libvlc_
media_instance_get_length
(
p_md
,
&
ex
);
libvlc_
media_instance_destroy_and_detach
(
p_md
);
if
(
libvlc_exception_raised
(
&
ex
)
)
{
NPN_SetException
(
this
,
libvlc_exception_get_message
(
&
ex
));
...
...
@@ -561,11 +561,11 @@ RuntimeNPObject::InvokeResult VlcNPObject::invoke(int index, const NPVariant *ar
case
ID_get_position
:
/* deprecated */
if
(
argCount
==
0
)
{
libvlc_
input_t
*
p_input
=
libvlc_playlist_get_input
(
p_plugin
->
getVLC
(),
&
ex
);
if
(
p_
input
)
libvlc_
media_instance_t
*
p_md
=
libvlc_playlist_get_input
(
p_plugin
->
getVLC
(),
&
ex
);
if
(
p_
md
)
{
float
val
=
libvlc_
input_get_position
(
p_input
,
&
ex
);
libvlc_
input_free
(
p_input
);
float
val
=
libvlc_
media_instance_get_position
(
p_md
,
&
ex
);
libvlc_
media_instance_destroy_and_detach
(
p_md
);
if
(
libvlc_exception_raised
(
&
ex
)
)
{
NPN_SetException
(
this
,
libvlc_exception_get_message
(
&
ex
));
...
...
@@ -593,11 +593,11 @@ RuntimeNPObject::InvokeResult VlcNPObject::invoke(int index, const NPVariant *ar
case
ID_get_time
:
/* deprecated */
if
(
argCount
==
0
)
{
libvlc_
input_t
*
p_input
=
libvlc_playlist_get_input
(
p_plugin
->
getVLC
(),
&
ex
);
if
(
p_
input
)
libvlc_
media_instance_t
*
p_md
=
libvlc_playlist_get_input
(
p_plugin
->
getVLC
(),
&
ex
);
if
(
p_
md
)
{
vlc_int64_t
val
=
libvlc_
input_get_time
(
p_input
,
&
ex
);
libvlc_
input_free
(
p_input
);
vlc_int64_t
val
=
libvlc_
media_instance_get_time
(
p_md
,
&
ex
);
libvlc_
media_instance_destroy_and_detach
(
p_md
);
if
(
libvlc_exception_raised
(
&
ex
)
)
{
NPN_SetException
(
this
,
libvlc_exception_get_message
(
&
ex
));
...
...
@@ -627,8 +627,8 @@ RuntimeNPObject::InvokeResult VlcNPObject::invoke(int index, const NPVariant *ar
&&
isNumberValue
(
args
[
0
])
&&
NPVARIANT_IS_BOOLEAN
(
args
[
1
])
)
{
libvlc_
input_t
*
p_input
=
libvlc_playlist_get_input
(
p_plugin
->
getVLC
(),
&
ex
);
if
(
p_
input
)
libvlc_
media_instance_t
*
p_md
=
libvlc_playlist_get_input
(
p_plugin
->
getVLC
(),
&
ex
);
if
(
p_
md
)
{
vlc_int64_t
pos
=
0
;
if
(
NPVARIANT_IS_INT32
(
args
[
0
])
)
...
...
@@ -639,10 +639,10 @@ RuntimeNPObject::InvokeResult VlcNPObject::invoke(int index, const NPVariant *ar
if
(
NPVARIANT_TO_BOOLEAN
(
args
[
1
])
)
{
/* relative seek */
vlc_int64_t
from
=
libvlc_
input_get_time
(
p_input
,
&
ex
);
vlc_int64_t
from
=
libvlc_
media_instance_get_time
(
p_md
,
&
ex
);
if
(
libvlc_exception_raised
(
&
ex
)
)
{
libvlc_
input_free
(
p_input
);
libvlc_
media_instance_destroy_and_detach
(
p_md
);
NPN_SetException
(
this
,
libvlc_exception_get_message
(
&
ex
));
libvlc_exception_clear
(
&
ex
);
return
INVOKERESULT_GENERIC_ERROR
;
...
...
@@ -650,8 +650,8 @@ RuntimeNPObject::InvokeResult VlcNPObject::invoke(int index, const NPVariant *ar
pos
+=
from
;
}
/* jump to time */
libvlc_
input_set_time
(
p_input
,
pos
,
&
ex
);
libvlc_
input_free
(
p_input
);
libvlc_
media_instance_set_time
(
p_md
,
pos
,
&
ex
);
libvlc_
media_instance_destroy_and_detach
(
p_md
);
if
(
libvlc_exception_raised
(
&
ex
)
)
{
NPN_SetException
(
this
,
libvlc_exception_get_message
(
&
ex
));
...
...
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