basesink: post a warning on excessive framedrops
authorWim Taymans <wim.taymans@collabora.co.uk>
Mon, 1 Jun 2009 17:37:14 +0000 (19:37 +0200)
committerWim Taymans <wim@metal.(none)>
Mon, 1 Jun 2009 17:37:14 +0000 (19:37 +0200)
When we go into emergency rendering, post a warning informing the user about
this fact.

libs/gst/base/gstbasesink.c

index 4c9dd93..53c4a37 100644 (file)
@@ -2476,6 +2476,9 @@ gst_base_sink_is_too_late (GstBaseSink * basesink, GstMiniObject * obj,
      * second, render it anyway so the user sees something */
     if (priv->last_in_time != -1 && start - priv->last_in_time > GST_SECOND) {
       late = FALSE;
+      GST_ELEMENT_WARNING (basesink, CORE, CLOCK,
+          (_("A lot of buffers are dropped.")),
+          ("Maybe there is a timestamp problem or this computer is too slow."));
       GST_DEBUG_OBJECT (basesink,
           "**emergency** last buffer at %" GST_TIME_FORMAT " > GST_SECOND",
           GST_TIME_ARGS (priv->last_in_time));