diff options
author | Arun Raghavan <arun.raghavan@collabora.co.uk> | 2012-10-03 12:47:14 +0530 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2013-03-27 22:21:17 +0000 |
commit | 32154c5ae696aa5368bab37eee1f7dbcd0788e94 (patch) | |
tree | 411e7c9c3bfd2798803f0e37b3eea5f815f50171 /ext/sbc | |
parent | 7e65f96acb33ab0a7a2c42a433cd5d637df97a7f (diff) | |
download | gstreamer-plugins-bad-32154c5ae696aa5368bab37eee1f7dbcd0788e94.tar.gz |
sbc: audio: Make the sbcdec element copy buffer metadata
Makes sure we don't lose timestamps, etc.
Diffstat (limited to 'ext/sbc')
-rw-r--r-- | ext/sbc/gstsbcdec.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/sbc/gstsbcdec.c b/ext/sbc/gstsbcdec.c index fe29259ff..12df308a3 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) |