} SerializedEventData;
static GstPad *
-_get_actual_pad (GstPad *pad)
+_get_actual_pad (GstPad * pad)
{
GstPad *tmp_pad;
if (seqnum == pad_monitor->pending_flush_start_seqnum) {
pad_monitor->pending_flush_start_seqnum = 0;
} else {
- GST_VALIDATE_REPORT (pad_monitor, EVENT_HAS_WRONG_SEQNUM,
- "The expected flush-start seqnum should be the same as the "
- "one from the event that caused it (probably a seek). Got: %u."
- " Expected: %u", seqnum, pad_monitor->pending_flush_start_seqnum);
+ GST_VALIDATE_REPORT (pad_monitor, FLUSH_START_HAS_WRONG_SEQNUM,
+ "Got: %u Expected: %u", seqnum,
+ pad_monitor->pending_flush_start_seqnum);
}
}
if (seqnum == pad_monitor->pending_flush_stop_seqnum) {
pad_monitor->pending_flush_stop_seqnum = 0;
} else {
- GST_VALIDATE_REPORT (pad_monitor, EVENT_HAS_WRONG_SEQNUM,
- "The expected flush-stop seqnum should be the same as the "
- "one from the event that caused it (probably a seek). Got: %u."
- " Expected: %u", seqnum, pad_monitor->pending_flush_stop_seqnum);
+ GST_VALIDATE_REPORT (pad_monitor, FLUSH_STOP_HAS_WRONG_SEQNUM,
+ "Got: %u Expected: %u", seqnum,
+ pad_monitor->pending_flush_stop_seqnum);
}
}
}
static void
-mark_pads_eos (GstValidatePadMonitor *pad_monitor)
+mark_pads_eos (GstValidatePadMonitor * pad_monitor)
{
GstValidatePadMonitor *peer_monitor;
GstPad *peer = gst_pad_get_peer (pad_monitor->pad);
pad_monitor->is_eos = TRUE;
if (peer) {
real_peer = _get_actual_pad (peer);
- peer_monitor = g_object_get_data ((GObject *) real_peer, "validate-monitor");
+ peer_monitor =
+ g_object_get_data ((GObject *) real_peer, "validate-monitor");
if (peer_monitor)
peer_monitor->is_eos = TRUE;
gst_object_unref (peer);
if (pad_monitor->pending_newsegment_seqnum == seqnum) {
pad_monitor->pending_newsegment_seqnum = 0;
} else {
- GST_VALIDATE_REPORT (pad_monitor, EVENT_HAS_WRONG_SEQNUM,
- "The expected segment seqnum should be the same as the "
- "one from the seek that caused it. Got: %u."
- " Expected: %u", seqnum, pad_monitor->pending_eos_seqnum);
+ GST_VALIDATE_REPORT (pad_monitor, SEGMENT_HAS_WRONG_SEQNUM,
+ "Got: %u Expected: %u", seqnum, pad_monitor->pending_eos_seqnum);
}
}
"EOS %" GST_PTR_FORMAT " received before a segment was received",
event);
} else if (pad_monitor->pending_eos_seqnum != seqnum) {
- GST_VALIDATE_REPORT (pad_monitor, EVENT_HAS_WRONG_SEQNUM,
- "The expected EOS seqnum should be the same as the "
- "one from the seek that caused it. Got: %u."
- " Expected: %u", seqnum, pad_monitor->pending_eos_seqnum);
+ GST_VALIDATE_REPORT (pad_monitor, EOS_HAS_WRONG_SEQNUM,
+ "Got: %u. Expected: %u", seqnum, pad_monitor->pending_eos_seqnum);
}
/*
"received and serialized with buffers. If an event is received after"
" a buffer with timestamp end 'X', it should be pushed right after "
"buffers with timestamp end 'X'"));
- REGISTER_VALIDATE_ISSUE (ISSUE, EVENT_HAS_WRONG_SEQNUM,
- _("events that are part of the same pipeline 'operation' should "
+ REGISTER_VALIDATE_ISSUE (ISSUE, EOS_HAS_WRONG_SEQNUM,
+ _("EOS events that are part of the same pipeline 'operation' should "
+ "have the same seqnum"),
+ _("when events/messages are created from another event/message, "
+ "they should have their seqnums set to the original event/message "
+ "seqnum"));
+ REGISTER_VALIDATE_ISSUE (ISSUE, FLUSH_START_HAS_WRONG_SEQNUM,
+ _
+ ("FLUSH_START events that are part of the same pipeline 'operation' should "
+ "have the same seqnum"),
+ _("when events/messages are created from another event/message, "
+ "they should have their seqnums set to the original event/message "
+ "seqnum"));
+ REGISTER_VALIDATE_ISSUE (ISSUE, FLUSH_STOP_HAS_WRONG_SEQNUM,
+ _
+ ("FLUSH_STOP events that are part of the same pipeline 'operation' should "
+ "have the same seqnum"),
+ _("when events/messages are created from another event/message, "
+ "they should have their seqnums set to the original event/message "
+ "seqnum"));
+ REGISTER_VALIDATE_ISSUE (ISSUE, SEGMENT_HAS_WRONG_SEQNUM,
+ _("SEGMENT events that are part of the same pipeline 'operation' should "
"have the same seqnum"),
_("when events/messages are created from another event/message, "
"they should have their seqnums set to the original event/message "