]> git.sesse.net Git - vlc/blobdiff - modules/access/gnomevfs.c
lua/intf: Fix a memleak.
[vlc] / modules / access / gnomevfs.c
index d54c8170f9615a1b5e1fbecf74557b6b4b265162..fb8f56bed8e3e000edd9113cc5e2b07eec55e472 100644 (file)
@@ -28,7 +28,8 @@
 # include "config.h"
 #endif
 
-#include <vlc/vlc.h>
+#include <vlc_common.h>
+#include <vlc_plugin.h>
 #include <vlc_access.h>
 
 #include <libgnomevfs/gnome-vfs.h>
@@ -49,12 +50,12 @@ static void Close( vlc_object_t * );
     "This value should be set in milliseconds." )
 
 vlc_module_begin();
-    set_description( _("GnomeVFS input") );
+    set_description( N_("GnomeVFS input") );
     set_shortname( "GnomeVFS" );
     set_category( CAT_INPUT );
     set_subcategory( SUBCAT_INPUT_ACCESS );
     add_integer( "gnomevfs-caching", DEFAULT_PTS_DELAY / 1000, NULL, CACHING_TEXT, CACHING_LONGTEXT, true );
-    set_capability( "access2", 10 );
+    set_capability( "access", 10 );
     add_shortcut( "gnomevfs" );
     set_callbacks( Open, Close );
 vlc_module_end();
@@ -403,7 +404,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
         case ACCESS_GET_PTS_DELAY:
             pi_64 = (int64_t*)va_arg( args, int64_t * );
             *pi_64 = var_GetInteger( p_access,
-                                        "gnomevfs-caching" ) * I64C(1000);
+                                        "gnomevfs-caching" ) * INT64_C(1000);
             break;
 
         /* */