gst/check/consistencychecker: Check type of miniobject in probe

This commit is contained in:
Edward Hervey 2009-10-08 08:55:23 +02:00
parent a8e03abd17
commit 9b17059deb

View file

@ -52,7 +52,7 @@ source_pad_data_cb (GstPad * pad, GstMiniObject * data,
fail_if (consist->eos, "Buffer received after EOS"); fail_if (consist->eos, "Buffer received after EOS");
/* Buffers need to be preceded by a newsegment event */ /* Buffers need to be preceded by a newsegment event */
fail_unless (consist->newsegment, "Buffer received without newsegment"); fail_unless (consist->newsegment, "Buffer received without newsegment");
} else { } else if (GST_IS_EVENT (data)) {
GstEvent *event = (GstEvent *) data; GstEvent *event = (GstEvent *) data;
GST_DEBUG_OBJECT (pad, "%s", GST_EVENT_TYPE_NAME (event)); GST_DEBUG_OBJECT (pad, "%s", GST_EVENT_TYPE_NAME (event));