When using the -d
command line option, the state is wrongly returned
as "Playing" as iPaused
is initialized with false
. Fix it by
initializing it with true
.
For this reason it is necessary to use Play()
instead of starting the
timer directly, as Play()
is setting iPaused
and starting the
timer, when not using the -d
command line option.