From 0bb5c6c012571d9ce7f80d9699a0d63f2768c271 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 10 Dec 2012 11:49:46 +0000 Subject: [PATCH] videodecoder: Only keep track of timestamps if the subclass is parsing data Otherwise we just pass through the timestamps directly and don't need to waste additional memory for them. Fixes bug #689814. --- gst-libs/gst/video/gstvideodecoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/video/gstvideodecoder.c b/gst-libs/gst/video/gstvideodecoder.c index 3481ebc2fc..27f2e2b1b0 100644 --- a/gst-libs/gst/video/gstvideodecoder.c +++ b/gst-libs/gst/video/gstvideodecoder.c @@ -1678,7 +1678,7 @@ gst_video_decoder_chain_forward (GstVideoDecoder * decoder, if (priv->current_frame == NULL) priv->current_frame = gst_video_decoder_new_frame (decoder); - if (GST_BUFFER_PTS_IS_VALID (buf)) { + if (GST_BUFFER_PTS_IS_VALID (buf) && !priv->packetized) { gst_video_decoder_add_timestamp (decoder, buf); } priv->input_offset += gst_buffer_get_size (buf);