]> git.tue.mpg.de Git - paraslash.git/commit
server: Fix --autoplay-delay.
authorAndre Noll <maan@tuebingen.mpg.de>
Wed, 1 Jun 2016 16:59:09 +0000 (18:59 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Wed, 1 Jun 2016 16:59:09 +0000 (18:59 +0200)
commite4efba96ba3f2d77eb75fc27631e590c8be3c879
tree07b747aaa4a182660eb812cb6ca50acb03f74b98
parent06d0c50525fc14e8127916481a74c14a2f7098af
server: Fix --autoplay-delay.

init_vss_task() is called before the scheduler has initialized the
timeval available everywhere through the global now pointer. Hence,
in this function ->now is {0, 0}, and the computed autoplay barrier
will be in the past, effectively making --autoplay-delay a no-op.

Fix this by calling clock_get_realtime() to get the current time.
vss.c