From 315347a8dcac5301263c45ce83975a706e53a366 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Thu, 24 Mar 2011 13:53:12 +0200 Subject: [PATCH] spectrum: fix broken code resulting for a wrong splitup of changes --- gst/spectrum/gstspectrum.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/spectrum/gstspectrum.c b/gst/spectrum/gstspectrum.c index cfd4032d98..272d9032c3 100644 --- a/gst/spectrum/gstspectrum.c +++ b/gst/spectrum/gstspectrum.c @@ -1012,7 +1012,7 @@ gst_spectrum_transform_ip (GstBaseTransform * trans, GstBuffer * buffer) spectrum->accumulated_error += spectrum->error_per_interval; spectrum->frames_todo = spectrum->frames_per_interval; - if (spectrum->accumulated_error >= spectrum->frame_time) + if (spectrum->accumulated_error >= GST_SECOND) spectrum->frames_todo++; if (spectrum->post_messages) { @@ -1078,7 +1078,7 @@ gst_spectrum_transform_ip (GstBaseTransform * trans, GstBuffer * buffer) spectrum->accumulated_error += spectrum->error_per_interval; spectrum->frames_todo = spectrum->frames_per_interval; - if (spectrum->accumulated_error >= spectrum->frame_time) + if (spectrum->accumulated_error >= GST_SECOND) spectrum->frames_todo++; if (spectrum->post_messages) {