From ee86a91957b73e57c1d9b540c53b21e0fc49def4 Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Thu, 21 Nov 2013 21:33:59 +0100 Subject: [PATCH] videodecoder: avoid descending output timestamps Fixes https://bugzilla.gnome.org/show_bug.cgi?id=712796 --- gst-libs/gst/video/gstvideodecoder.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst-libs/gst/video/gstvideodecoder.c b/gst-libs/gst/video/gstvideodecoder.c index ef5baf7f7d..4e69a76a5f 100644 --- a/gst-libs/gst/video/gstvideodecoder.c +++ b/gst-libs/gst/video/gstvideodecoder.c @@ -2314,6 +2314,8 @@ gst_video_decoder_prepare_finish_frame (GstVideoDecoder * GST_TIME_FORMAT ")", GST_TIME_ARGS (frame->pts), GST_TIME_ARGS (priv->last_timestamp_out)); priv->reordered_output = TRUE; + /* make it a bit less weird downstream */ + frame->pts = priv->last_timestamp_out; } }