mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
gst/audiorate/gstaudiorate.c: Delete bad debug code.
Original commit message from CVS: * gst/audiorate/gstaudiorate.c: (gst_audio_rate_chain): Delete bad debug code. Fixes #381219
This commit is contained in:
parent
748960f9ee
commit
ff480c70d4
2 changed files with 6 additions and 9 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2006-12-01 Michael Smith <msmith@fluendo.com>
|
||||||
|
|
||||||
|
* gst/audiorate/gstaudiorate.c: (gst_audio_rate_chain):
|
||||||
|
Delete bad debug code.
|
||||||
|
Fixes #381219
|
||||||
|
|
||||||
2006-12-01 Jan Schmidt <thaytan@mad.scientist.com>
|
2006-12-01 Jan Schmidt <thaytan@mad.scientist.com>
|
||||||
|
|
||||||
* gst/videoscale/vs_4tap.c:
|
* gst/videoscale/vs_4tap.c:
|
||||||
|
|
|
@ -509,15 +509,6 @@ gst_audio_rate_chain (GstPad * pad, GstBuffer * buf)
|
||||||
|
|
||||||
audiorate->in++;
|
audiorate->in++;
|
||||||
|
|
||||||
static guint64 nextts = 0;
|
|
||||||
|
|
||||||
#define LLABS(a) ((gint64)(a) < 0 ? -(a):(a))
|
|
||||||
if (nextts != GST_BUFFER_TIMESTAMP (buf) && LLABS (GST_BUFFER_TIMESTAMP (buf) - nextts) > 21000) /* 21 us, ~1 sample */
|
|
||||||
GST_DEBUG_OBJECT (audiorate, "Expected %lld, got %lld! --> %lld", nextts,
|
|
||||||
GST_BUFFER_TIMESTAMP (buf),
|
|
||||||
LLABS (GST_BUFFER_TIMESTAMP (buf) - nextts));
|
|
||||||
nextts = GST_BUFFER_TIMESTAMP (buf) + GST_BUFFER_DURATION (buf);
|
|
||||||
|
|
||||||
in_time = GST_BUFFER_TIMESTAMP (buf);
|
in_time = GST_BUFFER_TIMESTAMP (buf);
|
||||||
in_size = GST_BUFFER_SIZE (buf);
|
in_size = GST_BUFFER_SIZE (buf);
|
||||||
in_samples = in_size / audiorate->bytes_per_sample;
|
in_samples = in_size / audiorate->bytes_per_sample;
|
||||||
|
|
Loading…
Reference in a new issue