]> git.sesse.net Git - vlc/commitdiff
Fix A/52 decoding when liba52 is not present
authorRémi Denis-Courmont <remi@remlab.net>
Mon, 14 Dec 2009 18:41:47 +0000 (20:41 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 14 Dec 2009 18:42:48 +0000 (20:42 +0200)
62eefa47e9195d1f4f6e99eca21c09f85788f913 introduced the same hack for
DTS already a while ago. This allows falling back to lavc gracefully.

modules/codec/a52.c

index d786d7cf8d98d7c26767d4ea2e8a73b207bafacb..23803b8c03a36cd092637e25cbae9f5ab2857b72 100644 (file)
@@ -159,6 +159,9 @@ static int OpenCommon( vlc_object_t *p_this, bool b_packetizer )
 
 static int OpenDecoder( vlc_object_t *p_this )
 {
+    /* HACK: Don't use this codec if we don't have an dts audio filter */
+    if( !module_exists( "a52tofloat32" ) )
+        return VLC_EGENERIC;
     return OpenCommon( p_this, false );
 }