[vlc-devel] commit: Don't use vlc_int64_t. It no longer exist. (Christophe Mutricy )

git version control git at videolan.org
Sun Jun 1 00:29:32 CEST 2008


vlc | branch: master | Christophe Mutricy <xtophe at videolan.org> | Sat May 31 23:03:37 2008 +0100| [31a8cbee8c72701d11dc5152b91256134c8165c8]

Don't use vlc_int64_t. It no longer exist.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=31a8cbee8c72701d11dc5152b91256134c8165c8
---

 projects/mozilla/control/npolibvlc.cpp |    6 +++---
 projects/mozilla/control/npovlc.cpp    |   12 ++++++------
 projects/mozilla/vlcshell.cpp          |    2 +-
 3 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/projects/mozilla/control/npolibvlc.cpp b/projects/mozilla/control/npolibvlc.cpp
index cd3efb3..bf10d9c 100644
--- a/projects/mozilla/control/npolibvlc.cpp
+++ b/projects/mozilla/control/npolibvlc.cpp
@@ -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);
diff --git a/projects/mozilla/control/npovlc.cpp b/projects/mozilla/control/npovlc.cpp
index 01aca25..6ca4265 100644
--- a/projects/mozilla/control/npovlc.cpp
+++ b/projects/mozilla/control/npovlc.cpp
@@ -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);
diff --git a/projects/mozilla/vlcshell.cpp b/projects/mozilla/vlcshell.cpp
index ecb40d8..0dbc3a0 100644
--- a/projects/mozilla/vlcshell.cpp
+++ b/projects/mozilla/vlcshell.cpp
@@ -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 );




More information about the vlc-devel mailing list