consistencychecker: print which event we received before stream-start

This commit is contained in:
Tim-Philipp Müller 2012-08-06 20:08:07 +01:00
parent 9427851fd2
commit 11ce044cc4

View file

@ -123,7 +123,8 @@ source_pad_data_cb (GstPad * pad, GstPadProbeInfo * info,
if (GST_EVENT_IS_SERIALIZED (event)) { if (GST_EVENT_IS_SERIALIZED (event)) {
fail_if (!consist->saw_stream_start fail_if (!consist->saw_stream_start
&& GST_EVENT_TYPE (event) != GST_EVENT_STREAM_START, && GST_EVENT_TYPE (event) != GST_EVENT_STREAM_START,
"Got a serialized event before a STREAM_START"); "Got a serialized event (%s) before a STREAM_START",
GST_EVENT_TYPE_NAME (event));
consist->saw_serialized_event = TRUE; consist->saw_serialized_event = TRUE;
} }
} }