From b0c8b0f3227ebe75e18064821ed981bbd5d935a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sun, 27 Jan 2008 17:02:24 +0000 Subject: ext/soundtouch/gstpitch.cc: Cast a double to a GstClockTimeDiff to fix a compiler warning. Original commit message from CVS: * ext/soundtouch/gstpitch.cc: Cast a double to a GstClockTimeDiff to fix a compiler warning. --- ChangeLog | 5 +++++ ext/soundtouch/gstpitch.cc | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index a855c5fd..84c6aba1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-01-27 Sebastian Dröge + + * ext/soundtouch/gstpitch.cc: + Cast a double to a GstClockTimeDiff to fix a compiler warning. + 2008-01-27 Stefan Kost * tests/icles/metadata_editor.c: diff --git a/ext/soundtouch/gstpitch.cc b/ext/soundtouch/gstpitch.cc index b2532298..34e50aa4 100644 --- a/ext/soundtouch/gstpitch.cc +++ b/ext/soundtouch/gstpitch.cc @@ -204,7 +204,8 @@ gst_pitch_dispose (GObject * object) GstPitch *pitch = GST_PITCH (object); if (pitch->priv->st) { - delete (pitch->priv->st); + delete pitch->priv->st; + pitch->priv->st = NULL; } @@ -809,7 +810,8 @@ gst_pitch_update_latency (GstPitch * pitch, GstClockTime timestamp) GstClockTimeDiff current_latency, min_latency, max_latency; current_latency = - timestamp / pitch->priv->stream_time_ratio - pitch->next_buffer_time; + (GstClockTimeDiff) (timestamp / pitch->priv->stream_time_ratio) - + pitch->next_buffer_time; min_latency = MIN (pitch->min_latency, current_latency); max_latency = MAX (pitch->max_latency, current_latency); -- cgit v1.2.1