clockoverlay: fix bogus time display caused by previous commit
authorTim-Philipp Müller <tim@centricular.com>
Thu, 23 Jan 2020 18:03:13 +0000 (18:03 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 23 Jan 2020 18:28:45 +0000 (18:28 +0000)
commit37c996dcf49702774302c69855ed6f573fa74de7
tree04638f3d906f93bb2192f97c16d1ebedaac80d07
parent19b7b248cc02051924d478c102ba4895034b7fb2
clockoverlay: fix bogus time display caused by previous commit

Fixes regression introduced by "clean-up" done as part of commit 98ebcb4.

dummy must live as long as use the return value of localtime_r() since
that's just a pointer to it, and by putting it inside the block we made
dummy go out of scope right after localtime_r() returned, which messed
up the time values since when we poked at the struct the contents might
already have been overwritten.

Fixes #722
ext/pango/gstclockoverlay.c