videodecoder: playback rate is in input_segment
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Thu, 9 Apr 2015 17:16:10 +0000 (19:16 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 9 Jun 2016 16:05:41 +0000 (19:05 +0300)
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

index 2e480a4..cbeb847 100644 (file)
@@ -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 {