videodecoder: avoid descending output timestamps
authorMark Nauwelaerts <mnauw@users.sourceforge.net>
Thu, 21 Nov 2013 20:33:59 +0000 (21:33 +0100)
committerMark Nauwelaerts <mnauw@users.sourceforge.net>
Sat, 23 Nov 2013 18:39:52 +0000 (19:39 +0100)
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=712796

gst-libs/gst/video/gstvideodecoder.c

index ef5baf7..4e69a76 100644 (file)
@@ -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;
     }
   }