]> git.sesse.net Git - vlc/blobdiff - modules/access/sdi.cpp
Move the sdi plugin to C++.
[vlc] / modules / access / sdi.cpp
similarity index 96%
rename from modules/access/sdi.c
rename to modules/access/sdi.cpp
index d8b4080303dc90a689a90c32fba1e91e43566b37..3f5c114333c12209622312fdbbab8e64f960b8ec 100644 (file)
@@ -4,6 +4,10 @@
 # include "config.h"
 #endif
 
+#ifndef INT64_C
+#define INT64_C(c) c ## LL
+#endif
+
 #include <vlc_common.h>
 #include <vlc_plugin.h>
 #include <vlc_input.h>
@@ -58,7 +62,7 @@ static int Open( vlc_object_t *p_this )
     p_demux->info.i_update = 0;
     p_demux->info.i_title = 0;
     p_demux->info.i_seekpoint = 0;
-    p_demux->p_sys = p_sys = calloc( 1, sizeof( demux_sys_t ) );
+    p_demux->p_sys = p_sys = (demux_sys_t*)calloc( 1, sizeof( demux_sys_t ) );
     if( !p_sys )
         return VLC_ENOMEM;