]> 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 2e29b7d550bd9093b828281e6b94ca0703cb2ee9..b4a2cb1c20a21481efe79bf2b6ca59db7f5a7351 100644 (file)
@@ -102,7 +102,8 @@ static int Open( vlc_object_t *p_this )
     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 */