From a8033553f9e69fc583df0dc8811acb6b53a7e75e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 10 Feb 2015 10:56:37 +0100 Subject: [PATCH] videoaggregator: When receiving timeout before caps, make sure to also advance our frame counter Otherwise we will directly go EOS on the next non-timeout. --- gst-libs/gst/video/gstvideoaggregator.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst-libs/gst/video/gstvideoaggregator.c b/gst-libs/gst/video/gstvideoaggregator.c index bd6eb32c50..7f1381610a 100644 --- a/gst-libs/gst/video/gstvideoaggregator.c +++ b/gst-libs/gst/video/gstvideoaggregator.c @@ -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 {