mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 00:06:36 +00:00
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
This commit is contained in:
parent
5cfa2c1a0c
commit
1dffb8370c
2 changed files with 10 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
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",
|
||||
|
|
Loading…
Reference in a new issue