From 6435014c2605e1e22d22fb58f135347bc13e412a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Mon, 12 Dec 2005 10:40:42 +0000 Subject: ext/: GstObjects must be unref'ed with gst_object_unref() instead of g_object_unref(), otherwise things break for GLi... Original commit message from CVS: * ext/ivorbis/vorbisfile.c: (gst_ivorbisfile_loop): * ext/libmms/gstmms.c: (gst_mms_src_query), (gst_mms_create): * ext/musepack/gstmusepackdec.c: (gst_musepackdec_src_query), (gst_musepackdec_loop): * ext/swfdec/gstswfdec.c: (gst_swfdec_video_link), (gst_swfdec_src_query): * ext/wavpack/gstwavpackparse.c: (gst_wavpack_parse_src_query): GstObjects must be unref'ed with gst_object_unref() instead of g_object_unref(), otherwise things break for GLib-2.6 users. --- ext/musepack/gstmusepackdec.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ext/musepack/gstmusepackdec.c') diff --git a/ext/musepack/gstmusepackdec.c b/ext/musepack/gstmusepackdec.c index 877a4e3c..2216b591 100644 --- a/ext/musepack/gstmusepackdec.c +++ b/ext/musepack/gstmusepackdec.c @@ -351,7 +351,7 @@ gst_musepackdec_src_query (GstPad * pad, GstQuery * query) } done: - g_object_unref (musepackdec); + gst_object_unref (musepackdec); return res; } @@ -557,6 +557,9 @@ gst_musepackdec_loop (GstPad * sinkpad) GST_FORMAT_DEFAULT, musepackdec->pos, &fmt, &value); GST_BUFFER_TIMESTAMP (out) = value; + GST_DEBUG ("Pushing buffer, timestamp %" GST_TIME_FORMAT, + GST_TIME_ARGS (GST_BUFFER_TIMESTAMP (out))); + musepackdec->pos += GST_BUFFER_SIZE (out) / musepackdec->bps; gst_buffer_set_caps (out, GST_PAD_CAPS (musepackdec->srcpad)); gst_pad_push (musepackdec->srcpad, out); -- cgit v1.2.1