]> git.sesse.net Git - vlc/blobdiff - plugins/beos/aout_beos.cpp
* Fixed a bug in the gtk interface which caused vlc to go amok after
[vlc] / plugins / beos / aout_beos.cpp
index b6bf18c3a3de7575cc44339184fa0fb1eac6df47..e76889527955adb1fa79007fc228c9b0262cb580 100644 (file)
@@ -1,11 +1,11 @@
 /*****************************************************************************
  * aout_beos.cpp: BeOS audio output
  *****************************************************************************
- * Copyright (C) 1999, 2000 VideoLAN
- * $Id: aout_beos.cpp,v 1.10 2001/01/13 12:57:19 sam Exp $
+ * Copyright (C) 1999, 2000, 2001 VideoLAN
+ * $Id: aout_beos.cpp,v 1.15 2001/07/12 20:44:52 reno Exp $
  *
- * Authors:
- * Samuel Hocevar <sam@via.ecp.fr>
+ * Authors: Jean-Marc Dressler <polux@via.ecp.fr>
+ *          Samuel Hocevar <sam@zoy.org>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -22,6 +22,9 @@
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
  *****************************************************************************/
 
+#define MODULE_NAME beos
+#include "modules_inner.h"
+
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
@@ -45,7 +48,6 @@ extern "C"
 #include "common.h"
 #include "threads.h"
 #include "mtime.h"
-#include "plugins.h"
 
 #include "audio_output.h"
 
@@ -53,6 +55,7 @@ extern "C"
 #include "main.h"
 
 #include "modules.h"
+#include "modules_export.h"
 }
 
 /*****************************************************************************
@@ -89,7 +92,7 @@ static void    aout_Close       ( aout_thread_t *p_aout );
  * Functions exported as capabilities. They are declared as static so that
  * we don't pollute the namespace too much.
  *****************************************************************************/
-void aout_getfunctions( function_list_t * p_function_list )
+void _M( aout_getfunctions )( function_list_t * p_function_list )
 {
     p_function_list->pf_probe = aout_Probe;
     p_function_list->functions.aout.pf_open = aout_Open;
@@ -177,6 +180,8 @@ static int aout_Open( aout_thread_t *p_aout )
  *****************************************************************************/
 static int aout_SetFormat( aout_thread_t *p_aout )
 {
+    p_aout->i_latency = 0;
+
     return( 0 );
 }