Commit 31a8cbee authored by Christophe Mutricy's avatar Christophe Mutricy

Don't use vlc_int64_t. It no longer exist.

parent 231a36af
...@@ -603,11 +603,11 @@ RuntimeNPObject::InvokeResult LibvlcInputNPObject::setProperty(int index, const ...@@ -603,11 +603,11 @@ RuntimeNPObject::InvokeResult LibvlcInputNPObject::setProperty(int index, const
} }
case ID_input_time: case ID_input_time:
{ {
vlc_int64_t val; int64_t val;
if( NPVARIANT_IS_INT32(value) ) 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) ) else if( NPVARIANT_IS_DOUBLE(value) )
val = (vlc_int64_t)NPVARIANT_TO_DOUBLE(value); val = (int64_t)NPVARIANT_TO_DOUBLE(value);
else else
{ {
libvlc_media_player_release(p_md); libvlc_media_player_release(p_md);
......
...@@ -536,7 +536,7 @@ RuntimeNPObject::InvokeResult VlcNPObject::invoke(int index, const NPVariant *ar ...@@ -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); libvlc_media_player_t *p_md = libvlc_playlist_get_media_player(p_plugin->getVLC(), &ex);
if( p_md ) 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); libvlc_media_player_release(p_md);
if( libvlc_exception_raised(&ex) ) if( libvlc_exception_raised(&ex) )
{ {
...@@ -600,7 +600,7 @@ RuntimeNPObject::InvokeResult VlcNPObject::invoke(int index, const NPVariant *ar ...@@ -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); libvlc_media_player_t *p_md = libvlc_playlist_get_media_player(p_plugin->getVLC(), &ex);
if( p_md ) 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); libvlc_media_player_release(p_md);
if( libvlc_exception_raised(&ex) ) if( libvlc_exception_raised(&ex) )
{ {
...@@ -634,16 +634,16 @@ RuntimeNPObject::InvokeResult VlcNPObject::invoke(int index, const NPVariant *ar ...@@ -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); libvlc_media_player_t *p_md = libvlc_playlist_get_media_player(p_plugin->getVLC(), &ex);
if( p_md ) if( p_md )
{ {
vlc_int64_t pos = 0; int64_t pos = 0;
if( NPVARIANT_IS_INT32(args[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 else
pos = (vlc_int64_t)NPVARIANT_TO_DOUBLE(args[0]); pos = (int64_t)NPVARIANT_TO_DOUBLE(args[0]);
if( NPVARIANT_TO_BOOLEAN(args[1]) ) if( NPVARIANT_TO_BOOLEAN(args[1]) )
{ {
/* relative seek */ /* 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) ) if( libvlc_exception_raised(&ex) )
{ {
libvlc_media_player_release(p_md); libvlc_media_player_release(p_md);
......
...@@ -855,7 +855,7 @@ static void ControlHandler( Widget w, XtPointer closure, XEvent *event ) ...@@ -855,7 +855,7 @@ static void ControlHandler( Widget w, XtPointer closure, XEvent *event )
/* if a movie is loaded */ /* if a movie is loaded */
if( p_md ) if( p_md )
{ {
vlc_int64_t f_length; int64_t f_length;
libvlc_exception_init( &ex ); libvlc_exception_init( &ex );
f_length = libvlc_media_player_get_length( p_md, &ex ) / 100; f_length = libvlc_media_player_get_length( p_md, &ex ) / 100;
libvlc_exception_clear( &ex ); libvlc_exception_clear( &ex );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment