diff options
author | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | 2009-12-15 19:22:45 +0100 |
---|---|---|
committer | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | 2009-12-15 19:49:22 +0100 |
commit | 529db8b50193596cdb80f525639a8fc5f2e50e59 (patch) | |
tree | 2cce8044722f4824d5a13f2045d3236c21a35a7c | |
parent | b529a33105ee055523633ce8ec281dcdadf8efa4 (diff) |
audiorate: properly report truncated samples as dropped samples
-rw-r--r-- | gst/audiorate/gstaudiorate.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gst/audiorate/gstaudiorate.c b/gst/audiorate/gstaudiorate.c index c87c2341e..7679b69b7 100644 --- a/gst/audiorate/gstaudiorate.c +++ b/gst/audiorate/gstaudiorate.c @@ -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"); } } |