[vlc-commits] adummy: avoid forward declaration

Rémi Denis-Courmont git at videolan.org
Wed Oct 31 16:30:51 CET 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Oct 31 17:29:39 2012 +0200| [6c048d6cc547bad180cd0d341051f3c39ba0505c] | committer: Rémi Denis-Courmont

adummy: avoid forward declaration

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6c048d6cc547bad180cd0d341051f3c39ba0505c
---

 modules/audio_output/adummy.c |   27 ++++++---------------------
 1 file changed, 6 insertions(+), 21 deletions(-)

diff --git a/modules/audio_output/adummy.c b/modules/audio_output/adummy.c
index 295dca0..3e9b959 100644
--- a/modules/audio_output/adummy.c
+++ b/modules/audio_output/adummy.c
@@ -21,10 +21,6 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
-/*****************************************************************************
- * Preamble
- *****************************************************************************/
-
 #ifdef HAVE_CONFIG_H
 # include "config.h"
 #endif
@@ -46,14 +42,13 @@ vlc_module_end ()
 
 #define A52_FRAME_NB 1536
 
-/*****************************************************************************
- * Local prototypes.
- *****************************************************************************/
-static void Play( audio_output_t *, block_t *, mtime_t * );
+static void Play( audio_output_t *aout, block_t *block, mtime_t *drift )
+{
+    block_Release( block );
+    (void) aout;
+    (void) drift;
+}
 
-/*****************************************************************************
- * OpenAudio: open a dummy audio device
- *****************************************************************************/
 static int Open( vlc_object_t * p_this )
 {
     audio_output_t * p_aout = (audio_output_t *)p_this;
@@ -76,13 +71,3 @@ static int Open( vlc_object_t * p_this )
 
     return VLC_SUCCESS;
 }
-
-/*****************************************************************************
- * Play: pretend to play a sound
- *****************************************************************************/
-static void Play( audio_output_t *aout, block_t *block, mtime_t *drift )
-{
-    block_Release( block );
-    (void) aout;
-    (void) drift;
-}



More information about the vlc-commits mailing list