/*****************************************************************************
* 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 <sam@zoy.org>
*
*
* 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 <vlc/vlc.h>
-#include <vlc/decoder.h>
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
+#include <vlc_common.h>
+#include <vlc_codec.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h> /* write(), close() */
# include <fcntl.h>
#endif
-#ifdef HAVE_LIMITS_H
-# include <limits.h> /* PATH_MAX */
-#endif
+#include <limits.h> /* PATH_MAX */
-#include <stdio.h> /* sprintf() */
+
+#include "dummy.h"
/*****************************************************************************
* decoder_sys_t : theora decoder descriptor
/*****************************************************************************
* 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;
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;
}
/*****************************************************************************
* 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;