QTextToSpeechProcessorFlite::startTokenTimer(): Handle missing audiosink


QTextToSpeechProcessorFlite::startTokenTimer() reads the already played
time from m_audioSink. If the first token passed to the processor is
invalid, m_audioSink hasn't been created. The application crashed with
a nullptr access.

Assume that played time is 0, when there is no audiosink.
Add an autotest.

Fixes: QTBUG-128818
Pick-to: 6.10 6.9 6.8
Change-Id: I212a413967fb5b0d3a1190d2ed3f34ac434aeb77
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
commit941882a7443a83a8346674e98b6a5ad711f588ff
parent8ead156d0a8c0df723658b4cfaf246f4e4b2de00
authorAxel Spoerl <axel.spoerl@qt.io>
committerAxel Spoerl <axel.spoerl@qt.io>
commit timeThu, 5 Jun 2025 08:48:25 +0200