From 779e739142dcfb5b84261af9125eb4b3df47f3f3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Thu, 9 Apr 2015 19:16:10 +0200 Subject: [PATCH] videodecoder: playback rate is in input_segment The playback rate is hold in the input_segment member variable, not in the output_segment, and the parse_gather list was never filled because of that. This patch changes the comparison with input_segment. --- gst-libs/gst/video/gstvideodecoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/video/gstvideodecoder.c b/gst-libs/gst/video/gstvideodecoder.c index 2e480a4..cbeb847 100644 --- a/gst-libs/gst/video/gstvideodecoder.c +++ b/gst-libs/gst/video/gstvideodecoder.c @@ -3383,7 +3383,7 @@ gst_video_decoder_have_frame (GstVideoDecoder * decoder) GST_TIME_ARGS (duration)); /* In reverse playback, just capture and queue frames for later processing */ - if (decoder->output_segment.rate < 0.0) { + if (decoder->input_segment.rate < 0.0) { priv->parse_gather = g_list_prepend (priv->parse_gather, priv->current_frame); } else { -- 2.7.4