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.
This commit is contained in:
Sebastian Dröge 2012-12-10 11:49:46 +00:00
parent d4b6f3c1a0
commit 0bb5c6c012

View file

@ -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);