plugins/elements/gsttypefindelement.c: More debug info; when skipping typefinding...
authorTim-Philipp Müller <tim@centricular.net>
Tue, 4 Apr 2006 08:55:44 +0000 (08:55 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Tue, 4 Apr 2006 08:55:44 +0000 (08:55 +0000)
Original commit message from CVS:
* plugins/elements/gsttypefindelement.c:
(gst_type_find_element_chain):
More debug info; when skipping typefinding, send cached
events in all cases.

ChangeLog
plugins/elements/gsttypefindelement.c

index ecec461..8f4bc9a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-04-04  Tim-Philipp Müller  <tim at centricular dot net>
+
+       * plugins/elements/gsttypefindelement.c:
+       (gst_type_find_element_chain):
+         More debug info; when skipping typefinding, send cached
+         events in all cases.
+
 2006-04-01  Thomas Vander Stichele  <thomas at apestaart dot org>
 
        * configure.ac:
index 809a79a..9d37c0b 100644 (file)
@@ -542,14 +542,16 @@ gst_type_find_element_chain (GstPad * pad, GstBuffer * buffer)
       if (gst_caps_is_any (caps)) {
         gst_caps_unref (caps);
       } else {
+        GST_DEBUG_OBJECT (typefind, "Skipping typefinding, using caps from "
+            "upstream buffer: %" GST_PTR_FORMAT, caps);
         typefind->mode = MODE_NORMAL;
         g_signal_emit (typefind, gst_type_find_element_signals[HAVE_TYPE], 0,
             GST_TYPE_FIND_MAXIMUM, caps);
 
+        gst_type_find_element_send_cached_events (typefind);
         if (typefind->store) {
           GST_DEBUG_OBJECT (typefind, "Pushing store: %d",
               GST_BUFFER_SIZE (typefind->store));
-          gst_type_find_element_send_cached_events (typefind);
           gst_buffer_set_caps (typefind->store, typefind->caps);
           gst_pad_push (typefind->src, typefind->store);
           typefind->store = NULL;