basevideo: Add a warning

Merging previous commit into current codebase.
This commit is contained in:
David Schleef 2009-09-17 10:50:40 -07:00
parent 9b1ee36328
commit 99a88edcc1

View file

@ -840,6 +840,10 @@ gst_base_video_decoder_chain (GstPad * pad, GstBuffer * buf)
return GST_FLOW_OK;
}
if (m < 0) {
g_warning ("subclass returned negative scan %d", m);
}
if (m >= n) {
GST_ERROR ("subclass scanned past end %d >= %d", m, n);
}