From b7cd417797885336cb5cec3b64909d458fdf33ba Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Sun, 10 Nov 2002 14:37:29 +0000 Subject: [PATCH] some debug output Original commit message from CVS: some debug output --- ext/vorbis/vorbisfile.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ext/vorbis/vorbisfile.c b/ext/vorbis/vorbisfile.c index c5536f8f3e..253b0e72f5 100644 --- a/ext/vorbis/vorbisfile.c +++ b/ext/vorbis/vorbisfile.c @@ -935,8 +935,10 @@ gst_vorbisfile_src_event (GstPad *pad, GstEvent *event) vorbis_info *vi; GstFormat format; + GST_DEBUG (GST_CAT_EVENT, "vorbisfile: handling seek event"); if (!vorbisfile->vf.seekable) { gst_event_unref (event); + GST_DEBUG (GST_CAT_EVENT, "vorbis stream is not seekable"); return FALSE; } @@ -953,7 +955,8 @@ gst_vorbisfile_src_event (GstPad *pad, GstEvent *event) break; case GST_FORMAT_BYTES: vi = ov_info (&vorbisfile->vf, -1); - if (vi->channels * 2 == 0) { + if (vi->channels == 0) { + GST_DEBUG (GST_CAT_EVENT, "vorbis stream has 0 channels ?"); res = FALSE; goto done; } @@ -975,7 +978,10 @@ gst_vorbisfile_src_event (GstPad *pad, GstEvent *event) & GST_SEEK_FLAG_ACCURATE; } else + { + GST_DEBUG (GST_CAT_EVENT, "unhandled seek format"); res = FALSE; + } break; } break;