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
31a8cbee
Commit
31a8cbee
authored
May 31, 2008
by
Christophe Mutricy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't use vlc_int64_t. It no longer exist.
parent
231a36af
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
projects/mozilla/control/npolibvlc.cpp
projects/mozilla/control/npolibvlc.cpp
+3
-3
projects/mozilla/control/npovlc.cpp
projects/mozilla/control/npovlc.cpp
+6
-6
projects/mozilla/vlcshell.cpp
projects/mozilla/vlcshell.cpp
+1
-1
No files found.
projects/mozilla/control/npolibvlc.cpp
View file @
31a8cbee
...
...
@@ -603,11 +603,11 @@ RuntimeNPObject::InvokeResult LibvlcInputNPObject::setProperty(int index, const
}
case
ID_input_time
:
{
vlc_
int64_t
val
;
int64_t
val
;
if
(
NPVARIANT_IS_INT32
(
value
)
)
val
=
(
vlc_
int64_t
)
NPVARIANT_TO_INT32
(
value
);
val
=
(
int64_t
)
NPVARIANT_TO_INT32
(
value
);
else
if
(
NPVARIANT_IS_DOUBLE
(
value
)
)
val
=
(
vlc_
int64_t
)
NPVARIANT_TO_DOUBLE
(
value
);
val
=
(
int64_t
)
NPVARIANT_TO_DOUBLE
(
value
);
else
{
libvlc_media_player_release
(
p_md
);
...
...
projects/mozilla/control/npovlc.cpp
View file @
31a8cbee
...
...
@@ -536,7 +536,7 @@ RuntimeNPObject::InvokeResult VlcNPObject::invoke(int index, const NPVariant *ar
libvlc_media_player_t
*
p_md
=
libvlc_playlist_get_media_player
(
p_plugin
->
getVLC
(),
&
ex
);
if
(
p_md
)
{
vlc_
int64_t
val
=
libvlc_media_player_get_length
(
p_md
,
&
ex
);
int64_t
val
=
libvlc_media_player_get_length
(
p_md
,
&
ex
);
libvlc_media_player_release
(
p_md
);
if
(
libvlc_exception_raised
(
&
ex
)
)
{
...
...
@@ -600,7 +600,7 @@ RuntimeNPObject::InvokeResult VlcNPObject::invoke(int index, const NPVariant *ar
libvlc_media_player_t
*
p_md
=
libvlc_playlist_get_media_player
(
p_plugin
->
getVLC
(),
&
ex
);
if
(
p_md
)
{
vlc_
int64_t
val
=
libvlc_media_player_get_time
(
p_md
,
&
ex
);
int64_t
val
=
libvlc_media_player_get_time
(
p_md
,
&
ex
);
libvlc_media_player_release
(
p_md
);
if
(
libvlc_exception_raised
(
&
ex
)
)
{
...
...
@@ -634,16 +634,16 @@ RuntimeNPObject::InvokeResult VlcNPObject::invoke(int index, const NPVariant *ar
libvlc_media_player_t
*
p_md
=
libvlc_playlist_get_media_player
(
p_plugin
->
getVLC
(),
&
ex
);
if
(
p_md
)
{
vlc_
int64_t
pos
=
0
;
int64_t
pos
=
0
;
if
(
NPVARIANT_IS_INT32
(
args
[
0
])
)
pos
=
(
vlc_
int64_t
)
NPVARIANT_TO_INT32
(
args
[
0
]);
pos
=
(
int64_t
)
NPVARIANT_TO_INT32
(
args
[
0
]);
else
pos
=
(
vlc_
int64_t
)
NPVARIANT_TO_DOUBLE
(
args
[
0
]);
pos
=
(
int64_t
)
NPVARIANT_TO_DOUBLE
(
args
[
0
]);
if
(
NPVARIANT_TO_BOOLEAN
(
args
[
1
])
)
{
/* relative seek */
vlc_
int64_t
from
=
libvlc_media_player_get_time
(
p_md
,
&
ex
);
int64_t
from
=
libvlc_media_player_get_time
(
p_md
,
&
ex
);
if
(
libvlc_exception_raised
(
&
ex
)
)
{
libvlc_media_player_release
(
p_md
);
...
...
projects/mozilla/vlcshell.cpp
View file @
31a8cbee
...
...
@@ -855,7 +855,7 @@ static void ControlHandler( Widget w, XtPointer closure, XEvent *event )
/* if a movie is loaded */
if
(
p_md
)
{
vlc_
int64_t
f_length
;
int64_t
f_length
;
libvlc_exception_init
(
&
ex
);
f_length
=
libvlc_media_player_get_length
(
p_md
,
&
ex
)
/
100
;
libvlc_exception_clear
(
&
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