]> git.sesse.net Git - vlc/blobdiff - modules/access/fake.c
Don't compile any of the alsa audio input code if HAVE_ALSA isn't defined. This mainl...
[vlc] / modules / access / fake.c
index f9a92f89ed438a10aa61a18cd3594ac939c228a8..b4a2cb1c20a21481efe79bf2b6ca59db7f5a7351 100644 (file)
@@ -24,9 +24,6 @@
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
 
 #include <vlc/vlc.h>
 #include <vlc_access.h>
@@ -100,12 +97,13 @@ static int Open( vlc_object_t *p_this )
         return VLC_EGENERIC;
 
     /* Set up p_demux */
-    STANDARD_DEMUX_INIT; p_sys = p_demux->p_sys;
+    DEMUX_INIT_COMMON(); p_sys = p_demux->p_sys;
     p_demux->info.i_update = 0;
     p_demux->info.i_title = 0;
     p_demux->info.i_seekpoint = 0;
 
-    p_sys->i_duration = var_CreateGetInteger( p_demux, "fake-duration" ) * 1000;
+    p_sys->i_duration =
+        (mtime_t)var_CreateGetInteger( p_demux, "fake-duration" ) * 1000;
     p_sys->f_fps = var_CreateGetFloat( p_demux, "fake-fps" );
 
     /* Declare the elementary stream */