Commit 0bb5c6c0 authored by Sebastian Dröge's avatar Sebastian Dröge
Browse files

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.
parent d4b6f3c1
......@@ -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) && !priv->packetized) {
gst_video_decoder_add_timestamp (decoder, buf);
priv->input_offset += gst_buffer_get_size (buf);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment