some debug output

Original commit message from CVS:
some debug output
This commit is contained in:
Thomas Vander Stichele 2002-11-10 14:37:29 +00:00
parent 875a87a943
commit b7cd417797

View File

@ -935,8 +935,10 @@ gst_vorbisfile_src_event (GstPad *pad, GstEvent *event)
vorbis_info *vi; vorbis_info *vi;
GstFormat format; GstFormat format;
GST_DEBUG (GST_CAT_EVENT, "vorbisfile: handling seek event");
if (!vorbisfile->vf.seekable) { if (!vorbisfile->vf.seekable) {
gst_event_unref (event); gst_event_unref (event);
GST_DEBUG (GST_CAT_EVENT, "vorbis stream is not seekable");
return FALSE; return FALSE;
} }
@ -953,7 +955,8 @@ gst_vorbisfile_src_event (GstPad *pad, GstEvent *event)
break; break;
case GST_FORMAT_BYTES: case GST_FORMAT_BYTES:
vi = ov_info (&vorbisfile->vf, -1); 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; res = FALSE;
goto done; goto done;
} }
@ -975,7 +978,10 @@ gst_vorbisfile_src_event (GstPad *pad, GstEvent *event)
& GST_SEEK_FLAG_ACCURATE; & GST_SEEK_FLAG_ACCURATE;
} }
else else
{
GST_DEBUG (GST_CAT_EVENT, "unhandled seek format");
res = FALSE; res = FALSE;
}
break; break;
} }
break; break;