X-Git-Url: https://git.ti.com/gitweb?p=glsdk%2Fgstreamer0-10.git;a=blobdiff_plain;f=libs%2Fgst%2Fcheck%2Fgstconsistencychecker.c;h=ded047e1dbe0a6891922f00397b27b08db4e909d;hp=affa6abd5e56e134c7b1dcbaaecba928ad125233;hb=ca179625f89edf6a118eb9e934a89de4ed4b720b;hpb=dcdc73d1826d3dca91663ee8ce8af84fcf3ea317;ds=sidebyside diff --git a/libs/gst/check/gstconsistencychecker.c b/libs/gst/check/gstconsistencychecker.c index affa6abd5..ded047e1d 100644 --- a/libs/gst/check/gstconsistencychecker.c +++ b/libs/gst/check/gstconsistencychecker.c @@ -32,6 +32,15 @@ #include "gstconsistencychecker.h" +struct _GstStreamConsistency +{ + gboolean flushing; + gboolean newsegment; + gboolean eos; + gulong probeid; + GstPad *pad; +}; + static gboolean source_pad_data_cb (GstPad * pad, GstMiniObject * data, GstStreamConsistency * consist) @@ -43,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)); @@ -70,6 +79,7 @@ source_pad_data_cb (GstPad * pad, GstMiniObject * data, break; case GST_EVENT_TAG: GST_DEBUG_OBJECT (pad, "tag %" GST_PTR_FORMAT, event->structure); + /* fall through */ default: if (GST_EVENT_IS_SERIALIZED (event) && GST_EVENT_IS_DOWNSTREAM (event)) { fail_if (consist->eos, "Event received after EOS");