From 1af510f8d54ddeb58f1c8e6db3f4fe45d21dd026 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Mon, 24 Sep 2007 10:53:37 +0000 Subject: Massive leak fixing, plus code cleanups. Original commit message from CVS: * ext/audioresample/gstaudioresample.c: * ext/x264/gstx264enc.c: * gst/dvdspu/gstdvdspu.c: * gst/dvdspu/gstdvdspu.h: * gst/festival/gstfestival.c: * gst/h264parse/gsth264parse.c: * gst/mpegtsparse/mpegtspacketizer.c: * gst/mpegtsparse/mpegtsparse.c: * gst/multifile/gstmultifilesink.c: * gst/multifile/gstmultifilesrc.c: * gst/nuvdemux/gstnuvdemux.c: * sys/dshowsrcwrapper/gstdshowaudiosrc.c: * sys/dshowsrcwrapper/gstdshowvideosrc.c: * sys/vcd/vcdsrc.c: Massive leak fixing, plus code cleanups. --- ext/audioresample/gstaudioresample.c | 9 +++++---- ext/x264/gstx264enc.c | 3 +-- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'ext') diff --git a/ext/audioresample/gstaudioresample.c b/ext/audioresample/gstaudioresample.c index 6b63db33..8971824a 100644 --- a/ext/audioresample/gstaudioresample.c +++ b/ext/audioresample/gstaudioresample.c @@ -61,15 +61,16 @@ enum "endianness = (int) BYTE_ORDER, " \ "width = (int) 16, " \ "depth = (int) 16, " \ - "signed = (boolean) true") - + "signed = (boolean) true" #if 0 - /* disabled because it segfaults */ + /* disabled because it segfaults */ "audio/x-raw-float, " "rate = (int) [ 1, MAX ], " "channels = (int) [ 1, MAX ], " - "endianness = (int) BYTE_ORDER, " "width = (int) 32") + "endianness = (int) BYTE_ORDER, " "width = (int) 32" #endif + ) + static GstStaticPadTemplate gst_audioresample_sink_template = GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, SUPPORTED_CAPS); diff --git a/ext/x264/gstx264enc.c b/ext/x264/gstx264enc.c index 4841755a..21693b8d 100644 --- a/ext/x264/gstx264enc.c +++ b/ext/x264/gstx264enc.c @@ -664,10 +664,9 @@ gst_x264_enc_dispose (GObject * object) encoder->buffer = NULL; gst_x264_enc_timestamp_queue_free (encoder); + gst_x264_enc_close_encoder (encoder); G_OBJECT_CLASS (parent_class)->dispose (object); - - gst_x264_enc_close_encoder (encoder); } static gboolean -- cgit v1.2.1