From a539aa09c9823358a80f196197709ee238f4f846 Mon Sep 17 00:00:00 2001 From: James Courtier-Dutton Date: Fri, 4 Jan 2002 00:23:06 +0000 Subject: NAV packets now reach libspudec. Nothing done with them yet. CVS patchset: 1331 CVS date: 2002/01/04 00:23:06 --- src/libspudec/xine_decoder.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/libspudec/xine_decoder.c') diff --git a/src/libspudec/xine_decoder.c b/src/libspudec/xine_decoder.c index a75c6b7d5..50e05b0bf 100644 --- a/src/libspudec/xine_decoder.c +++ b/src/libspudec/xine_decoder.c @@ -19,7 +19,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: xine_decoder.c,v 1.46 2002/01/03 23:56:44 jcdutton Exp $ + * $Id: xine_decoder.c,v 1.47 2002/01/04 00:23:06 jcdutton Exp $ * * stuff needed to turn libspu into a xine decoder plugin */ @@ -65,7 +65,7 @@ static clut_t __default_clut[] = { static int spudec_can_handle (spu_decoder_t *this_gen, int buf_type) { int type = buf_type & 0xFFFF0000; - return (type == BUF_SPU_PACKAGE || type == BUF_SPU_CLUT || type == BUF_SPU_SUBP_CONTROL) ; + return (type == BUF_SPU_PACKAGE || type == BUF_SPU_CLUT || type == BUF_SPU_NAV || type == BUF_SPU_SUBP_CONTROL) ; } /* FIXME: This function needs checking */ @@ -252,6 +252,11 @@ static void spudec_decode_data (spu_decoder_t *this_gen, buf_element_t *buf) { } return; } + if (buf->type == BUF_SPU_NAV) { + /* printf("libspudec:got nav packet 1\n"); */ + /* spudec_decode_nav(this,buf); */ + return; + } if (buf->decoder_info[0] == 0) /* skip preview data */ -- cgit v1.2.3