From 5486683cb7dbb5fe38553fff0c619a5d64d33ca4 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Thu, 15 Jul 2010 23:05:09 +0300 Subject: [PATCH] typefind: add comment and more logging --- plugins/elements/gsttypefindelement.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/elements/gsttypefindelement.c b/plugins/elements/gsttypefindelement.c index 1a38916..0e97ec7 100644 --- a/plugins/elements/gsttypefindelement.c +++ b/plugins/elements/gsttypefindelement.c @@ -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 */ -- 2.7.4