diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2015-02-10 10:56:37 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2015-02-10 10:57:38 +0100 |
commit | a8033553f9e69fc583df0dc8811acb6b53a7e75e (patch) | |
tree | 8164957f9d22569b38a6ccc3d910975e020d4993 /gst-libs/gst/video/gstvideoaggregator.c | |
parent | 69a37365f1cde3e84efef7c290b2d70bf569973d (diff) | |
download | gstreamer-plugins-bad-a8033553f9e69fc583df0dc8811acb6b53a7e75e.tar.gz |
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.
Diffstat (limited to 'gst-libs/gst/video/gstvideoaggregator.c')
-rw-r--r-- | gst-libs/gst/video/gstvideoaggregator.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gst-libs/gst/video/gstvideoaggregator.c b/gst-libs/gst/video/gstvideoaggregator.c index bd6eb32c5..7f1381610 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 { |