Improve debugging.

Original commit message from CVS:
* gst/gstpad.c: (gst_pad_push_event), (gst_pad_send_event):
* libs/gst/base/gstbasesrc.c: (gst_base_src_query_latency),
(gst_base_src_default_query), (gst_base_src_get_range),
(gst_base_src_start):
* tests/check/pipelines/parse-launch.c: (setup_pipeline):
Improve debugging.
This commit is contained in:
Wim Taymans 2007-06-15 10:43:51 +00:00
parent 0caaa7deee
commit 3d4e515e77
4 changed files with 22 additions and 1 deletions

View file

@ -1,3 +1,12 @@
2007-06-15 Wim Taymans <wim@fluendo.com>
* gst/gstpad.c: (gst_pad_push_event), (gst_pad_send_event):
* libs/gst/base/gstbasesrc.c: (gst_base_src_query_latency),
(gst_base_src_default_query), (gst_base_src_get_range),
(gst_base_src_start):
* tests/check/pipelines/parse-launch.c: (setup_pipeline):
Improve debugging.
2007-06-15 Stefan Kost <ensonic@users.sf.net>
* docs/pwg/advanced-types.xml:

View file

@ -4062,7 +4062,8 @@ gst_pad_push_event (GstPad * pad, GstEvent * event)
result = gst_pad_send_event (peerpad, event);
/* Note: we gave away ownership of the event at this point */
GST_LOG_OBJECT (pad, "sent event to peerpad %" GST_PTR_FORMAT, peerpad);
GST_LOG_OBJECT (pad, "sent event to peerpad %" GST_PTR_FORMAT ", result %d",
peerpad, result);
gst_object_unref (peerpad);
return result;
@ -4207,6 +4208,8 @@ gst_pad_send_event (GstPad * pad, GstEvent * event)
if (need_unlock)
GST_PAD_STREAM_UNLOCK (pad);
GST_DEBUG_OBJECT (pad, "sent event, result %d", result);
return result;
/* ERROR handling */

View file

@ -694,6 +694,9 @@ gst_base_src_default_query (GstBaseSrc * src, GstQuery * query)
GstFormat format;
gst_query_parse_duration (query, &format, NULL);
GST_DEBUG_OBJECT (src, "duration query in format %s",
gst_format_get_name (format));
switch (format) {
case GST_FORMAT_PERCENT:
gst_query_set_duration (query, GST_FORMAT_PERCENT,
@ -790,6 +793,8 @@ gst_base_src_default_query (GstBaseSrc * src, GstQuery * query)
res = FALSE;
break;
}
GST_DEBUG_OBJECT (src, "query %s returns %d", GST_QUERY_TYPE_NAME (query),
res);
return res;
}
@ -2001,6 +2006,7 @@ gst_base_src_start (GstBaseSrc * basesrc)
result = FALSE;
size = -1;
}
GST_DEBUG_OBJECT (basesrc, "setting size %" G_GUINT64_FORMAT, size);
/* only update the size when operating in bytes, subclass is supposed
* to set duration in the start method for other formats */
gst_segment_set_duration (&basesrc->segment, GST_FORMAT_BYTES, size);

View file

@ -37,6 +37,9 @@ setup_pipeline (const gchar * pipe_descr)
GError *error = NULL;
pipeline = gst_parse_launch (pipe_descr, &error);
GST_DEBUG ("created %s", pipe_descr);
if (error != NULL) {
fail_if (error != NULL, "Error parsing pipeline %s: %s", pipe_descr,
error->message);