pad-monitor: add check for out of segment buffers

This commit is contained in:
Thiago Santos 2013-07-17 00:33:42 -03:00
parent c53b10e5c5
commit 0b90e7bddd

View file

@ -549,8 +549,9 @@ gst_qa_pad_monitor_buffer_probe (GstPad * pad, GstBuffer * buffer,
!gst_segment_clip (&monitor->segment, monitor->segment.format, !gst_segment_clip (&monitor->segment, monitor->segment.format,
GST_BUFFER_TIMESTAMP (buffer), GST_BUFFER_TIMESTAMP (buffer) + GST_BUFFER_TIMESTAMP (buffer), GST_BUFFER_TIMESTAMP (buffer) +
GST_BUFFER_DURATION (buffer), NULL, NULL)) { GST_BUFFER_DURATION (buffer), NULL, NULL)) {
/* TODO error */ /* TODO is this a timestamp issue? */
g_assert_not_reached (); GST_QA_MONITOR_REPORT_ISSUE (monitor, BUFFER, TIMESTAMP,
"buffer is out of segment and shouldn't be pushed");
} }
} }
} }