From f3fad44a00d6d84ef5fa38032e2e4ea883a775bb Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sun, 13 Apr 2003 00:55:08 +0000 Subject: [PATCH] don't error out on max-buffers = 0 Original commit message from CVS: don't error out on max-buffers = 0 --- gst/gsttypefind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/gsttypefind.c b/gst/gsttypefind.c index c5d9d7b903..91e1c1c85c 100644 --- a/gst/gsttypefind.c +++ b/gst/gsttypefind.c @@ -235,7 +235,7 @@ gst_type_find_chain (GstPad *pad, GstBuffer *buf) end: 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), "typefind could not determine type after %d buffers", typefind->num_buffer); }