audiosrc: improve 'Dropped n samples' warning message

This commit is contained in:
Tim-Philipp Müller 2009-03-25 11:27:44 +00:00
parent b6fdf68dc0
commit 0267e79778

View file

@ -802,7 +802,9 @@ gst_base_audio_src_create (GstBaseSrc * bsrc, guint64 offset, guint length,
G_GUINT64_FORMAT, sample - src->next_sample, sample);
GST_ELEMENT_WARNING (src, CORE, CLOCK,
(_("Can't record audio fast enough")),
("dropped %" G_GUINT64_FORMAT " samples", sample - src->next_sample));
("Dropped %" G_GUINT64_FORMAT " samples. This is most likely because "
"downstream can't keep up and is consuming samples too slowly.",
sample - src->next_sample));
GST_BUFFER_FLAG_SET (buf, GST_BUFFER_FLAG_DISCONT);
}