X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fdemux%2Fxa.c;h=b98a78ed8f47e6a585225fe6a61192ebb9997d2c;hb=7686840e5c2b384eab661455a5e532a97c669e96;hp=dfa9ce2116a2461dfcae7e2d456361fb3e964aac;hpb=43e43fa5417471eec7f46be3eb7693ba2a65c93a;p=vlc diff --git a/modules/demux/xa.c b/modules/demux/xa.c index dfa9ce2116..b98a78ed8f 100644 --- a/modules/demux/xa.c +++ b/modules/demux/xa.c @@ -1,10 +1,10 @@ /***************************************************************************** - * xa.c : xa file input module for vlc + * xa.c : xa file demux module for vlc ***************************************************************************** - * Copyright (C) 2005 VideoLAN + * Copyright (C) 2005 Rémi Denis-Courmont * $Id$ * - * Authors: Remi Denis-Courmont + * Authors: Rémi Denis-Courmont * * 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 @@ -18,19 +18,22 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/ /***************************************************************************** * Preamble *****************************************************************************/ -#include /* malloc(), free() */ -#include -#include -#include +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif -#include +#include +#include +#include + +#include /***************************************************************************** * Module descriptor @@ -39,10 +42,10 @@ static int Open ( vlc_object_t * ); static void Close( vlc_object_t * ); vlc_module_begin(); - set_description( _("XA demuxer") ); + set_description( N_("XA demuxer") ); set_category( CAT_INPUT ); set_subcategory( SUBCAT_INPUT_DEMUX ); - set_capability( "demux2", 10 ); + set_capability( "demux", 10 ); set_callbacks( Open, Close ); vlc_module_end(); @@ -65,7 +68,7 @@ struct demux_sys_t typedef struct xa_header_t { - uint8_t xa_id[4]; + char xa_id[4]; uint32_t iSize; uint16_t wFormatTag; @@ -85,7 +88,7 @@ static int Open( vlc_object_t * p_this ) demux_t *p_demux = (demux_t*)p_this; demux_sys_t *p_sys; xa_header_t p_xa; - uint8_t *p_buf; + const uint8_t *p_buf; /* XA file heuristic */ if( stream_Peek( p_demux->s, &p_buf, sizeof( p_xa ) ) @@ -195,7 +198,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args ) { demux_sys_t *p_sys = p_demux->p_sys; - return demux2_vaControlHelper( p_demux->s, p_sys->i_data_offset, + return demux_vaControlHelper( p_demux->s, p_sys->i_data_offset, p_sys->i_data_size ? p_sys->i_data_offset + p_sys->i_data_size : -1, p_sys->fmt.i_bitrate,