]> git.sesse.net Git - vlc/commitdiff
fixed an off by factor 10 error. Noted along the way that this module
authorSigmund Augdal Helberg <sigmunau@videolan.org>
Sat, 24 Aug 2002 01:14:29 +0000 (01:14 +0000)
committerSigmund Augdal Helberg <sigmunau@videolan.org>
Sat, 24 Aug 2002 01:14:29 +0000 (01:14 +0000)
seems to be requesting audio some time before the output pipeline is
finnished

modules/audio_output/oss.c

index db775f6707ea8745073340a98f10f7872d813666..acb85fc20c4e163181081df5bf34bb6acc7a5359 100644 (file)
@@ -2,7 +2,7 @@
  * oss.c : OSS /dev/dsp module for vlc
  *****************************************************************************
  * Copyright (C) 2000-2002 VideoLAN
- * $Id: oss.c,v 1.13 2002/08/20 22:11:49 stef Exp $
+ * $Id: oss.c,v 1.14 2002/08/24 01:14:29 sigmunau Exp $
  *
  * Authors: Michel Kaempf <maxx@via.ecp.fr>
  *          Samuel Hocevar <sam@zoy.org>
@@ -310,7 +310,7 @@ static int OSSThread( aout_instance_t * p_aout )
              * is equal to the current date + duration of buffered samples.
              * Order is important here, since GetBufInfo is believed to take
              * more time than mdate(). */
-            next_date = (mtime_t)GetBufInfo( p_aout ) * 1000000
+            next_date = (mtime_t)GetBufInfo( p_aout ) * 100000
                       / p_aout->output.output.i_bytes_per_frame
                       / p_aout->output.output.i_rate
                       * p_aout->output.output.i_frame_length;