mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
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:
parent
d4b6f3c1a0
commit
0bb5c6c012
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue