From 8d2ac1002ccf11a8ec0a56c4ef3a3bdbf74523b4 Mon Sep 17 00:00:00 2001 From: Sébastien Moutte Date: Sun, 7 Jan 2007 10:44:12 +0000 Subject: gst/cutter/gstcutter.c: Use gst_guint64_to_gdouble for conversion. Original commit message from CVS: * gst/cutter/gstcutter.c: (gst_cutter_chain): Use gst_guint64_to_gdouble for conversion. * win32/vs6/libgstmatroska.dsp: Add zlib to the link. * win32/vs6/libgstvideobox.dsp: Update liboil library name (project is linked to liboil-0.3-0.lib now). --- gst/cutter/gstcutter.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gst/cutter') diff --git a/gst/cutter/gstcutter.c b/gst/cutter/gstcutter.c index cffa780f..9170b331 100644 --- a/gst/cutter/gstcutter.c +++ b/gst/cutter/gstcutter.c @@ -261,7 +261,9 @@ gst_cutter_chain (GstPad * pad, GstBuffer * buf) * if not, reset */ GST_LOG_OBJECT (filter, "buffer stats: NMS %f, RMS %f, audio length %f", NMS, - RMS, (gdouble) gst_audio_duration_from_pad_buffer (filter->sinkpad, buf)); + RMS, + gst_guint64_to_gdouble (gst_audio_duration_from_pad_buffer (filter-> + sinkpad, buf))); if (RMS < filter->threshold_level) filter->silent_run_length += gst_guint64_to_gdouble (gst_audio_duration_from_pad_buffer (filter-> -- cgit