mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
audiorate: properly report truncated samples as dropped samples
This commit is contained in:
parent
b529a33105
commit
529db8b501
1 changed files with 5 additions and 0 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue