]> git.sesse.net Git - vlc/commitdiff
Let the input handle meta data and attachments for ac3 audio
authorLaurent Aimar <fenrir@videolan.org>
Mon, 8 Oct 2007 18:48:00 +0000 (18:48 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Mon, 8 Oct 2007 18:48:00 +0000 (18:48 +0000)
(there was no meta data support for ac3).

modules/demux/a52.c

index b05bd4f7f22a8e93c5b530e3a03b160a7dd37b09..09b8786fa19969551a286cfc1357b84425236f14 100644 (file)
@@ -245,11 +245,21 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
 {
     demux_sys_t *p_sys  = p_demux->p_sys;
     if( i_query == DEMUX_SET_TIME )
+    {
         return VLC_EGENERIC;
+    }
+    else if( i_query == DEMUX_HAS_UNSUPPORTED_META )
+    {
+        vlc_bool_t *pb_bool = (vlc_bool_t*)va_arg( args, vlc_bool_t* );
+        *pb_bool = VLC_TRUE;
+        return VLC_SUCCESS;
+    }
     else
+    {
         return demux2_vaControlHelper( p_demux->s,
                                        0, -1,
                                        8*p_sys->i_mux_rate, 1, i_query, args );
+    }
 }
 
 /*****************************************************************************