fpsdisplaysink: initialize interval_ts and last_frames_* counters
authorLasse Laukkanen <ext-lasse.2.laukkanen@nokia.com>
Thu, 23 Sep 2010 11:15:08 +0000 (14:15 +0300)
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>
Fri, 24 Sep 2010 11:21:00 +0000 (08:21 -0300)
commit4ebdd9b5acebc79634c4cc5d2956a489e45df823
treed317db36d2a7cba87fd6312948c2e5d65dbc6f6f
parenta6b26cac6585db67b46fd0d105483919704e0670
fpsdisplaysink: initialize interval_ts and last_frames_* counters

Initialize interval_ts to first QOS event timestamp, otherwise the
fps statistics are printed always after one rendered frame.
Also, initialize last_frames_* counters, the values are bogus e.g. after
PLAYING-NULL-PLAYING state change.
gst/debugutils/fpsdisplaysink.c