summaryrefslogtreecommitdiffstats
path: root/ext/musepack
diff options
context:
space:
mode:
Diffstat (limited to 'ext/musepack')
-rw-r--r--ext/musepack/gstmusepackdec.c5
1 files changed, 4 insertions, 1 deletions
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);