summaryrefslogtreecommitdiff
path: root/src/libspudec/xine_decoder.c
diff options
context:
space:
mode:
authorJames Courtier-Dutton <jcdutton@users.sourceforge.net>2002-11-01 11:02:52 +0000
committerJames Courtier-Dutton <jcdutton@users.sourceforge.net>2002-11-01 11:02:52 +0000
commitac05c37c1ac529a4622c3c1e66d778fbfe96c885 (patch)
treefa91dbe57fb28b863a7b717a857a4040b33fb243 /src/libspudec/xine_decoder.c
parent2eab203a28f7f3ee7f851fa5b4b98d5c9537e4d9 (diff)
downloadxine-lib-ac05c37c1ac529a4622c3c1e66d778fbfe96c885.tar.gz
xine-lib-ac05c37c1ac529a4622c3c1e66d778fbfe96c885.tar.bz2
Add stricter checking.
Try to remove SPU_WIPE bug. CVS patchset: 3122 CVS date: 2002/11/01 11:02:52
Diffstat (limited to 'src/libspudec/xine_decoder.c')
-rw-r--r--src/libspudec/xine_decoder.c8
1 files changed, 7 insertions, 1 deletions
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;