Update of /cvsroot/xine/xine-lib/src/libvorbis
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv5075

Modified Files:
        xine_decoder.c 
Log Message:
Add a little more debug in case a vorbis stream cannot be decoded, just to know 
what to look for.


Index: xine_decoder.c
===================================================================
RCS file: /cvsroot/xine/xine-lib/src/libvorbis/xine_decoder.c,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -r1.47 -r1.48
--- xine_decoder.c      10 Jul 2006 22:08:30 -0000      1.47
+++ xine_decoder.c      4 Dec 2006 13:59:38 -0000       1.48
@@ -148,13 +148,16 @@
     lprintf ("%d headers to go\n", this->header_count);
 
     if (this->header_count) {
+      int res = 0;
 
       if (this->header_count == 3)
         this->op.b_o_s = 1;
 
-      if(vorbis_synthesis_headerin(&this->vi,&this->vc,&this->op)<0){ 
+      
+      if( (res = vorbis_synthesis_headerin(&this->vi,&this->vc,&this->op)) < 0 
){ 
        /* error case; not a vorbis header */
-       printf("libvorbis: this bitstream does not contain vorbis audio 
data.\n");
+       xine_log(this->stream->xine, XINE_LOG_MSG, "libvorbis: this bitstream 
does not contain vorbis audio data. Following first 64 bytes (return: %d).\n", 
res);
+       xine_hexdump(this->op.packet, this->op.bytes < 64 ? this->op.bytes : 
64);
        return;
       }
 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Xine-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xine-cvslog

Reply via email to