plugins/elements/gsttypefindelement.c: More debug info; when skipping typefinding, send cached events in all cases.

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.
This commit is contained in:
Tim-Philipp Müller 2006-04-04 08:55:44 +00:00
parent bb5f49a2da
commit 3b67b0ad82
2 changed files with 10 additions and 1 deletions

View file

@ -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> 2006-04-01 Thomas Vander Stichele <thomas at apestaart dot org>
* configure.ac: * configure.ac:

View file

@ -542,14 +542,16 @@ gst_type_find_element_chain (GstPad * pad, GstBuffer * buffer)
if (gst_caps_is_any (caps)) { if (gst_caps_is_any (caps)) {
gst_caps_unref (caps); gst_caps_unref (caps);
} else { } else {
GST_DEBUG_OBJECT (typefind, "Skipping typefinding, using caps from "
"upstream buffer: %" GST_PTR_FORMAT, caps);
typefind->mode = MODE_NORMAL; typefind->mode = MODE_NORMAL;
g_signal_emit (typefind, gst_type_find_element_signals[HAVE_TYPE], 0, g_signal_emit (typefind, gst_type_find_element_signals[HAVE_TYPE], 0,
GST_TYPE_FIND_MAXIMUM, caps); GST_TYPE_FIND_MAXIMUM, caps);
gst_type_find_element_send_cached_events (typefind);
if (typefind->store) { if (typefind->store) {
GST_DEBUG_OBJECT (typefind, "Pushing store: %d", GST_DEBUG_OBJECT (typefind, "Pushing store: %d",
GST_BUFFER_SIZE (typefind->store)); GST_BUFFER_SIZE (typefind->store));
gst_type_find_element_send_cached_events (typefind);
gst_buffer_set_caps (typefind->store, typefind->caps); gst_buffer_set_caps (typefind->store, typefind->caps);
gst_pad_push (typefind->src, typefind->store); gst_pad_push (typefind->src, typefind->store);
typefind->store = NULL; typefind->store = NULL;