From ac05c37c1ac529a4622c3c1e66d778fbfe96c885 Mon Sep 17 00:00:00 2001 From: James Courtier-Dutton Date: Fri, 1 Nov 2002 11:02:52 +0000 Subject: Add stricter checking. Try to remove SPU_WIPE bug. CVS patchset: 3122 CVS date: 2002/11/01 11:02:52 --- src/libspudec/xine_decoder.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/libspudec/xine_decoder.c') diff --git a/src/libspudec/xine_decoder.c b/src/libspudec/xine_decoder.c index 5b7e235d5..5625e0f51 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.83 2002/10/27 20:08:41 mroi Exp $ + * $Id: xine_decoder.c,v 1.84 2002/11/01 11:02:52 jcdutton Exp $ * * stuff needed to turn libspu into a xine decoder plugin */ @@ -74,6 +74,9 @@ static void spudec_decode_data (spu_decoder_t *this_gen, buf_element_t *buf) { stream_id = buf->type & 0x1f ; cur_seq = &this->spudec_stream_state[stream_id].ra_seq; +#ifdef LOG_DEBUG + printf("libspudec:got buffer type = %x\n", buf->type); +#endif if (buf->type == BUF_SPU_CLUT) { printf("libspudec: SPU CLUT\n"); if (buf->content[0]) { /* cheap endianess detection */ @@ -105,6 +108,9 @@ static void spudec_decode_data (spu_decoder_t *this_gen, buf_element_t *buf) { return; } +#ifdef LOG_DEBUG + printf("libspudec:got buffer type = %x\n", buf->type); +#endif if (buf->decoder_flags & BUF_FLAG_PREVIEW) /* skip preview data */ return; -- cgit v1.2.3