From 9b17059deb4ebf40069a5ccf2141cddcac5298ea Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Thu, 8 Oct 2009 08:55:23 +0200 Subject: [PATCH] gst/check/consistencychecker: Check type of miniobject in probe --- libs/gst/check/gstconsistencychecker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/gst/check/gstconsistencychecker.c b/libs/gst/check/gstconsistencychecker.c index 8f33d24..5253b4c 100644 --- a/libs/gst/check/gstconsistencychecker.c +++ b/libs/gst/check/gstconsistencychecker.c @@ -52,7 +52,7 @@ source_pad_data_cb (GstPad * pad, GstMiniObject * data, fail_if (consist->eos, "Buffer received after EOS"); /* Buffers need to be preceded by a newsegment event */ fail_unless (consist->newsegment, "Buffer received without newsegment"); - } else { + } else if (GST_IS_EVENT (data)) { GstEvent *event = (GstEvent *) data; GST_DEBUG_OBJECT (pad, "%s", GST_EVENT_TYPE_NAME (event)); -- 2.7.4