summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2002-11-10 14:37:29 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2002-11-10 14:37:29 +0000
commitb7cd417797885336cb5cec3b64909d458fdf33ba (patch)
tree40faafa9bbcc0e03626b904a119fe373c5b42df2
parent875a87a943ed9f92eb4c371d8a715b69635ddd10 (diff)
downloadgstreamer-plugins-base-b7cd417797885336cb5cec3b64909d458fdf33ba.tar.gz
some debug output
Original commit message from CVS: some debug output
-rw-r--r--ext/vorbis/vorbisfile.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/ext/vorbis/vorbisfile.c b/ext/vorbis/vorbisfile.c
index c5536f8f3..253b0e72f 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;