diff options
author | Sébastien Moutte <sebastien@moutte.net> | 2006-03-30 23:37:16 +0000 |
---|---|---|
committer | Sébastien Moutte <sebastien@moutte.net> | 2006-03-30 23:37:16 +0000 |
commit | 0debb1e9fcb4cae6ad74a1b1a8d4f75f5749eb69 (patch) | |
tree | 29927e3ea1d2c181813d5eba0791d0e0a2b74c4c /gst/cutter/gstcutter.c | |
parent | 629fb234a0515247c11085a0c63f6e5f57426a97 (diff) |
ext\jpeg\smokecodec.c: use of GST_DEBUG instead of DEBUG(a...) for WIN32
Original commit message from CVS:
* ext\jpeg\smokecodec.c:
use of GST_DEBUG instead of DEBUG(a...) for WIN32
* ext\speex\gstspeexenc.c: (gst_speexenc_set_header_on_caps):
move first instruction after all variables declarations
* gst\alpha\gstalpha.c:
* gst\effectv\gstshagadelic.c:
* gst\smpte\paint.c:
* gst\videofilter\gstvideobalance.c:
define M_PI if it's not defined (it's not defined on WIN32)
* gst\cutter\gstcutter.c: (gst_cutter_chain):
* gst\id3demux\id3v2frames.c: (parse_relative_volume_adjustment_two):
* gst\level\gstlevel.c: (gst_level_set_property), (gst_level_transform_ip):
* gst\matroska\matroska-demux.c: (gst_matroska_demux_parse_info),
(gst_matroska_demux_video_caps):
* gst\matroska\matroska-mux.c: (gst_matroska_mux_start), (gst_matroska_mux_finish):
* gst\wavparse\gstwavparse.c: (gst_wavparse_stream_data):
use gst_guint64_to_gdouble for conversions
* gst\goom\filters.c: (setPixelRGB_):
fix a debug which was using undefined variable
* gst\level\gstlevel.c: (gst_level_set_caps), (gst_level_transform_ip):
* gst\matroska\ebml-read.c: (gst_ebml_read_sint):
replace LL suffix with L suffix (LL isn't supported by MSVC6.0)
* win32/vs6:
add vs6 projects files for most of plugins-good
Diffstat (limited to 'gst/cutter/gstcutter.c')
-rw-r--r-- | gst/cutter/gstcutter.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/gst/cutter/gstcutter.c b/gst/cutter/gstcutter.c index 8d3c0647..5f794d90 100644 --- a/gst/cutter/gstcutter.c +++ b/gst/cutter/gstcutter.c @@ -263,7 +263,8 @@ gst_cutter_chain (GstPad * pad, GstBuffer * buf) NMS, RMS, gst_audio_duration_from_pad_buffer (filter->sinkpad, buf)); if (RMS < filter->threshold_level) filter->silent_run_length += - gst_audio_duration_from_pad_buffer (filter->sinkpad, buf); + gst_guint64_to_gdouble (gst_audio_duration_from_pad_buffer (filter-> + sinkpad, buf)); else { filter->silent_run_length = 0 * GST_SECOND; filter->silent = FALSE; @@ -307,13 +308,15 @@ gst_cutter_chain (GstPad * pad, GstBuffer * buf) if (filter->silent) { filter->pre_buffer = g_list_append (filter->pre_buffer, buf); filter->pre_run_length += - gst_audio_duration_from_pad_buffer (filter->sinkpad, buf); + gst_guint64_to_gdouble (gst_audio_duration_from_pad_buffer (filter-> + sinkpad, buf)); while (filter->pre_run_length > filter->pre_length) { prebuf = (g_list_first (filter->pre_buffer))->data; g_assert (GST_IS_BUFFER (prebuf)); filter->pre_buffer = g_list_remove (filter->pre_buffer, prebuf); filter->pre_run_length -= - gst_audio_duration_from_pad_buffer (filter->sinkpad, prebuf); + gst_guint64_to_gdouble (gst_audio_duration_from_pad_buffer (filter-> + sinkpad, prebuf)); /* only pass buffers if we don't leak */ if (!filter->leaky) gst_pad_push (filter->srcpad, prebuf); @@ -349,11 +352,12 @@ gst_cutter_set_property (GObject * object, guint prop_id, break; case PROP_RUN_LENGTH: /* set the minimum length of the silent run required */ - filter->threshold_length = g_value_get_uint64 (value); + filter->threshold_length = + gst_guint64_to_gdouble (g_value_get_uint64 (value)); break; case PROP_PRE_LENGTH: /* set the length of the pre-record block */ - filter->pre_length = g_value_get_uint64 (value); + filter->pre_length = gst_guint64_to_gdouble (g_value_get_uint64 (value)); break; case PROP_LEAKY: /* set if the pre-record buffer is leaky or not */ |