summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a02edf4)
raw | patch | inline | side by side (parent: a02edf4)
author | Wim Taymans <wim.taymans@gmail.com> | |
Thu, 15 Feb 2007 08:40:38 +0000 (08:40 +0000) | ||
committer | Wim Taymans <wim.taymans@gmail.com> | |
Thu, 15 Feb 2007 08:40:38 +0000 (08:40 +0000) |
Original commit message from CVS:
* tests/check/gst/gstevent.c: (event_probe), (test_event),
(GST_START_TEST):
Improve debugging.
* tests/check/gst/gstevent.c: (event_probe), (test_event),
(GST_START_TEST):
Improve debugging.
ChangeLog | patch | blob | history | |
tests/check/gst/gstevent.c | patch | blob | history |
diff --git a/ChangeLog b/ChangeLog
index 8c8738c252a00a6160b088b631f52adb7b108868..0ada5bc14f8b047eb4196a85e9ed5d19dd9e7843 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
+2007-02-15 Wim Taymans <wim@fluendo.com>
+
+ * tests/check/gst/gstevent.c: (event_probe), (test_event),
+ (GST_START_TEST):
+ Improve debugging.
+
2007-02-15 Wim Taymans <wim@fluendo.com>
* gst/gstpad.c: (gst_pad_get_internal_links_default),
index 307c2329a319269efc73ee76c2ee8351d60e1230..18b3634ff1dc649c2470390e83a3240fe8d42020 100644 (file)
fail_unless (GST_IS_EVENT (data));
+ GST_DEBUG ("event probe called");
+
if (before_q) {
switch (GST_EVENT_TYPE (GST_EVENT (data))) {
case GST_EVENT_CUSTOM_UPSTREAM:
gst_element_get_state (GST_ELEMENT (pipeline), NULL, NULL,
GST_CLOCK_TIME_NONE);
+ GST_DEBUG ("test event called");
+
event = gst_event_new_custom (type,
gst_structure_empty_new ("application/x-custom"));
g_get_current_time (&sent_event_time);
test_event (pipeline, GST_EVENT_CUSTOM_UPSTREAM, sinkpad, TRUE, srcpad);
fail_unless (timediff (&got_event_time,
&sent_event_time) < G_USEC_PER_SEC / 2,
- "GST_EVENT_CUSTOM_UP took to long to reach source: %"
+ "GST_EVENT_CUSTOM_UP took too long to reach source: %"
G_GINT64_FORMAT " us", timediff (&got_event_time, &sent_event_time));
test_event (pipeline, GST_EVENT_CUSTOM_BOTH, sinkpad, TRUE, srcpad);
fail_unless (timediff (&got_event_time,
&sent_event_time) < G_USEC_PER_SEC / 2,
- "GST_EVENT_CUSTOM_BOTH took to long to reach source: %"
+ "GST_EVENT_CUSTOM_BOTH took too long to reach source: %"
G_GINT64_FORMAT " us", timediff (&got_event_time, &sent_event_time));
test_event (pipeline, GST_EVENT_CUSTOM_BOTH_OOB, sinkpad, TRUE, srcpad);
fail_unless (timediff (&got_event_time,
&sent_event_time) < G_USEC_PER_SEC / 2,
- "GST_EVENT_CUSTOM_BOTH_OOB took to long to reach source: %"
+ "GST_EVENT_CUSTOM_BOTH_OOB took too long to reach source: %"
G_GINT64_FORMAT " us", timediff (&got_event_time, &sent_event_time));
/* Out of band downstream events */
test_event (pipeline, GST_EVENT_CUSTOM_DOWNSTREAM_OOB, srcpad, FALSE, srcpad);
fail_unless (timediff (&got_event_time,
&sent_event_time) < G_USEC_PER_SEC / 2,
- "GST_EVENT_CUSTOM_DS_OOB took to long to reach source: %"
+ "GST_EVENT_CUSTOM_DS_OOB took too long to reach source: %"
G_GINT64_FORMAT " us", timediff (&got_event_time, &sent_event_time));
test_event (pipeline, GST_EVENT_CUSTOM_BOTH_OOB, srcpad, FALSE, srcpad);
fail_unless (timediff (&got_event_time,
&sent_event_time) < G_USEC_PER_SEC / 2,
- "GST_EVENT_CUSTOM_BOTH_OOB took to long to reach source: %"
+ "GST_EVENT_CUSTOM_BOTH_OOB took too long to reach source: %"
G_GINT64_FORMAT " us", timediff (&got_event_time, &sent_event_time));
/* In-band downstream events are expected to take at least 1 second