don't error out on max-buffers = 0

Original commit message from CVS:
don't error out on max-buffers = 0
This commit is contained in:
Benjamin Otte 2003-04-13 00:55:08 +00:00
parent bd3511da69
commit f3fad44a00

View file

@ -235,7 +235,7 @@ gst_type_find_chain (GstPad *pad, GstBuffer *buf)
end: end:
gst_buffer_unref (buf); gst_buffer_unref (buf);
if (typefind->num_buffer >= typefind->max_buffers) { if (typefind->max_buffers && typefind->num_buffer >= typefind->max_buffers) {
gst_element_error (GST_ELEMENT (typefind), gst_element_error (GST_ELEMENT (typefind),
"typefind could not determine type after %d buffers", typefind->num_buffer); "typefind could not determine type after %d buffers", typefind->num_buffer);
} }