typefind: add comment and more logging
authorStefan Kost <ensonic@users.sf.net>
Thu, 15 Jul 2010 20:05:09 +0000 (23:05 +0300)
committerStefan Kost <ensonic@users.sf.net>
Mon, 2 Aug 2010 08:45:28 +0000 (11:45 +0300)
plugins/elements/gsttypefindelement.c

index 1a38916..0e97ec7 100644 (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 */