pad-monitor: add check for out of segment buffers
authorThiago Santos <thiago.sousa.santos@collabora.com>
Wed, 17 Jul 2013 03:33:42 +0000 (00:33 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.com>
Wed, 17 Jul 2013 03:33:42 +0000 (00:33 -0300)
validate/gst/qa/gst-qa-pad-monitor.c

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