X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=modules%2Fmisc%2Fdummy%2Fdecoder.c;h=1c632d28dafe31b994b203780701f3ccf9249b23;hb=326015842fbb404a7d947d1d7cdeb64fe879b69c;hp=6fae50ee5e8c2a0a15075b8b9fa8488286d6c305;hpb=525f8be1a0cce0c28dc6d413097c2d4e67ebf719;p=vlc diff --git a/modules/misc/dummy/decoder.c b/modules/misc/dummy/decoder.c index 6fae50ee5e..1c632d28da 100644 --- a/modules/misc/dummy/decoder.c +++ b/modules/misc/dummy/decoder.c @@ -1,8 +1,8 @@ /***************************************************************************** * decoder.c: dummy decoder plugin for vlc. ***************************************************************************** - * Copyright (C) 2002 VideoLAN - * $Id: decoder.c,v 1.10 2004/01/25 22:16:26 rocky Exp $ + * Copyright (C) 2002 the VideoLAN team + * $Id$ * * Authors: Samuel Hocevar * @@ -18,14 +18,18 @@ * * 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 -#include +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + +#include +#include #ifdef HAVE_UNISTD_H # include /* write(), close() */ @@ -42,11 +46,10 @@ # include #endif -#ifdef HAVE_LIMITS_H -# include /* PATH_MAX */ -#endif +#include /* PATH_MAX */ -#include /* sprintf() */ + +#include "dummy.h" /***************************************************************************** * decoder_sys_t : theora decoder descriptor @@ -64,7 +67,7 @@ static void *DecodeBlock( decoder_t *p_dec, block_t **pp_block ); /***************************************************************************** * OpenDecoder: Open the decoder *****************************************************************************/ -int E_(OpenDecoder) ( vlc_object_t *p_this ) +int OpenDecoder ( vlc_object_t *p_this ) { decoder_t *p_dec = (decoder_t*)p_this; decoder_sys_t *p_sys; @@ -107,6 +110,8 @@ int E_(OpenDecoder) ( vlc_object_t *p_this ) DecodeBlock; p_dec->pf_decode_audio = (aout_buffer_t *(*)(decoder_t *, block_t **)) DecodeBlock; + p_dec->pf_decode_sub = (subpicture_t *(*)(decoder_t *, block_t **)) + DecodeBlock; return VLC_SUCCESS; } @@ -140,7 +145,7 @@ static void *DecodeBlock( decoder_t *p_dec, block_t **pp_block ) /***************************************************************************** * CloseDecoder: decoder destruction *****************************************************************************/ -void E_(CloseDecoder) ( vlc_object_t *p_this ) +void CloseDecoder ( vlc_object_t *p_this ) { decoder_t *p_dec = (decoder_t *)p_this; decoder_sys_t *p_sys = p_dec->p_sys;