[vlc-devel] [PATCH] Allow for newer a52_init(void) call. take 2.

Kelly Anderson kelly at silka.with-linux.com
Sun Jan 8 05:47:27 CET 2012


Fix compile with svn://svn.videolan.org/liba52/trunk.

---
 modules/audio_filter/converter/a52tofloat32.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/modules/audio_filter/converter/a52tofloat32.c b/modules/audio_filter/converter/a52tofloat32.c
index 2980dd8..ec4a8f0 100644
--- a/modules/audio_filter/converter/a52tofloat32.c
+++ b/modules/audio_filter/converter/a52tofloat32.c
@@ -205,7 +205,11 @@ static int Open( vlc_object_t *p_this, filter_sys_t *p_sys,
     p_sys->i_flags |= A52_ADJUST_LEVEL;
 
     /* Initialize liba52 */
+#ifdef A52_ACCEL_DETECT
+    p_sys->p_liba52 = a52_init();
+#else
     p_sys->p_liba52 = a52_init( 0 );
+#endif
     if( p_sys->p_liba52 == NULL )
     {
         msg_Err( p_this, "unable to initialize liba52" );
-- 
1.7.8.3




More information about the vlc-devel mailing list