diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2006-12-04 13:59:38 +0000 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2006-12-04 13:59:38 +0000 |
commit | 787a4ce45f794abb7c8864b337d37e04b0a5b2b2 (patch) | |
tree | 17ca348745fde2ea935efd0617b3023e1687d949 | |
parent | 305933c9f9721d2f0bcd0616b15b87c369968834 (diff) | |
download | xine-lib-787a4ce45f794abb7c8864b337d37e04b0a5b2b2.tar.gz xine-lib-787a4ce45f794abb7c8864b337d37e04b0a5b2b2.tar.bz2 |
Add a little more debug in case a vorbis stream cannot be decoded, just to know what to look for.
CVS patchset: 8403
CVS date: 2006/12/04 13:59:38
-rw-r--r-- | src/libvorbis/xine_decoder.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/libvorbis/xine_decoder.c b/src/libvorbis/xine_decoder.c index 12d0a83f2..ef8575949 100644 --- a/src/libvorbis/xine_decoder.c +++ b/src/libvorbis/xine_decoder.c @@ -17,7 +17,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.47 2006/07/10 22:08:30 dgp85 Exp $ + * $Id: xine_decoder.c,v 1.48 2006/12/04 13:59:38 dgp85 Exp $ * * (ogg/)vorbis audio decoder plugin (libvorbis wrapper) for xine */ @@ -148,13 +148,16 @@ static void vorbis_decode_data (audio_decoder_t *this_gen, buf_element_t *buf) { 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; } |