typefind: add comment and more logging

This commit is contained in:
Stefan Kost 2010-07-15 23:05:09 +03:00
parent 2057cf6d79
commit 5486683cb7

View file

@ -54,6 +54,7 @@
* getrange based mode, the element starts its own task to figure out the
* type of the stream.
*
* Most of the actual implementation is in libs/gst/base/gsttypefindhelper.c.
*/
#ifdef HAVE_CONFIG_H
@ -750,6 +751,8 @@ gst_type_find_element_chain (GstPad * pad, GstBuffer * buffer)
typefind = GST_TYPE_FIND_ELEMENT (GST_PAD_PARENT (pad));
GST_LOG_OBJECT (typefind, "handling buffer in mode %d", typefind->mode);
switch (typefind->mode) {
case MODE_ERROR:
/* we should already have called GST_ELEMENT_ERROR */