gst/level/gstlevel.c: peak below decay is not necessarily an error, so don't ERROR log

Original commit message from CVS:

* gst/level/gstlevel.c: (gst_level_transform_ip):
peak below decay is not necessarily an error, so don't ERROR log
parent 5cfa2c1a
2006-02-06 Thomas Vander Stichele <thomas at apestaart dot org>
* gst/level/gstlevel.c: (gst_level_transform_ip):
peak below decay is not necessarily an error, so don't ERROR log
2006-02-06 Tim-Philipp Müller <tim at centricular dot net>
* gst/matroska/ebml-write.c: (gst_ebml_write_reset),
......
......@@ -547,9 +547,12 @@ gst_level_transform_ip (GstBaseTransform * trans, GstBuffer * in)
decaydB = 10 * log10 (filter->decay_peak[i]);
if (filter->decay_peak[i] < filter->last_peak[i]) {
GST_ERROR_OBJECT (filter,
"message: decay peak dB %f smaller than last peak dB %f",
/* this can happen in certain cases, for example when
* the last peak is between decay_peak and decay_peak_base */
GST_DEBUG_OBJECT (filter,
"message: decay peak dB %f smaller than last peak dB %f, copying",
decaydB, lastdB);
filter->decay_peak[i] = filter->last_peak[i];
}
GST_LOG_OBJECT (filter,
"message: RMS %f dB, peak %f dB, decay %f dB",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment