videoaggregator: When receiving timeout before caps, make sure to also advance our...
authorSebastian Dröge <sebastian@centricular.com>
Tue, 10 Feb 2015 09:56:37 +0000 (10:56 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 10 Feb 2015 09:57:38 +0000 (10:57 +0100)
Otherwise we will directly go EOS on the next non-timeout.

gst-libs/gst/video/gstvideoaggregator.c

index bd6eb32c507d0d5bd45a06355784f1dd08abe3c0..7f1381610a57d42b9fd51c38b116d70ca1a391aa 100644 (file)
@@ -1318,6 +1318,7 @@ gst_videoaggregator_aggregate (GstAggregator * agg, gboolean timeout)
           agg->segment.position -= frame_duration;
         else
           agg->segment.position = 0;
+        vagg->priv->nframes++;
         GST_VIDEO_AGGREGATOR_UNLOCK (vagg);
         return GST_FLOW_OK;
       } else {