From 32154c5ae696aa5368bab37eee1f7dbcd0788e94 Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Wed, 3 Oct 2012 12:47:14 +0530 Subject: [PATCH] sbc: audio: Make the sbcdec element copy buffer metadata Makes sure we don't lose timestamps, etc. --- ext/sbc/gstsbcdec.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ext/sbc/gstsbcdec.c b/ext/sbc/gstsbcdec.c index fe29259ffb..12df308a3c 100644 --- a/ext/sbc/gstsbcdec.c +++ b/ext/sbc/gstsbcdec.c @@ -112,8 +112,7 @@ sbc_dec_chain (GstPad * pad, GstBuffer * buffer) gst_buffer_set_caps (output, dec->outcaps); - /* FIXME get a real timestamp */ - GST_BUFFER_TIMESTAMP (output) = GST_CLOCK_TIME_NONE; + gst_buffer_copy_metadata (output, buffer, GST_BUFFER_COPY_TIMESTAMPS); res = gst_pad_push (dec->srcpad, output); if (res != GST_FLOW_OK)