mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
spectrum: fix broken code resulting for a wrong splitup of changes
This commit is contained in:
parent
3b552ae6f8
commit
315347a8dc
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue