audiorate: properly report truncated samples as dropped samples

This commit is contained in:
Mark Nauwelaerts 2009-12-15 19:22:45 +01:00
parent b529a33105
commit 529db8b501

View file

@ -629,6 +629,11 @@ gst_audio_rate_chain (GstPad * pad, GstBuffer * buf)
gst_buffer_set_caps (buf, GST_PAD_CAPS (audiorate->srcpad));
audiorate->drop += truncsamples;
GST_DEBUG_OBJECT (audiorate, "truncating %" G_GUINT64_FORMAT " samples",
truncsamples);
if (!audiorate->silent)
g_object_notify (G_OBJECT (audiorate), "drop");
}
}