]> git.sesse.net Git - vlc/commitdiff
* modules/codec/mpeg_audio.c: don't use this codec if we don't have an mpgatofixed32...
authorGildas Bazin <gbazin@videolan.org>
Mon, 27 Jun 2005 18:17:09 +0000 (18:17 +0000)
committerGildas Bazin <gbazin@videolan.org>
Mon, 27 Jun 2005 18:17:09 +0000 (18:17 +0000)
modules/codec/mpeg_audio.c

index a5614cd863597ec4f1217ab0599bac3ad598eec2..9c8a5d2db54fe0828944831805c3cf64285def7f 100644 (file)
@@ -7,7 +7,7 @@
  * Authors: Laurent Aimar <fenrir@via.ecp.fr>
  *          Eric Petit <titer@videolan.org>
  *          Christophe Massiot <massiot@via.ecp.fr>
- *          Gildas Bazin <gbazin@netcourrier.com>
+ *          Gildas Bazin <gbazin@videolan.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
@@ -132,6 +132,13 @@ static int OpenDecoder( vlc_object_t *p_this )
         return VLC_EGENERIC;
     }
 
+    /* HACK: Don't use this codec if we don't have an mpga audio filter */
+    if( p_dec->i_object_type == VLC_OBJECT_DECODER &&
+        !config_FindModule( p_this, "mpgatofixed32" ) )
+    {
+        return VLC_EGENERIC;
+    }
+
     /* Allocate the memory needed to store the decoder's structure */
     if( ( p_dec->p_sys = p_sys =
           (decoder_sys_t *)malloc(sizeof(decoder_sys_t)) ) == NULL )