mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-15 22:01:27 +00:00
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:
parent
bd3511da69
commit
f3fad44a00
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue