index affa6abd5e56e134c7b1dcbaaecba928ad125233..ded047e1dbe0a6891922f00397b27b08db4e909d 100644 (file)
#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)
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));
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");