fix crash when playing without audio device
We may not have a QPlatformAudioSink when qtspeech is used on system
without audio device. Adding a nullptr check to deal with such
situations.
Amends e2e4367513dd6ce66ff00c08f2b5dbc0b9cbfcfb
Pick-to: 6.11 6.11.0
Change-Id: Ica77f691434410105fda8bce200b5b0b3ba8db83
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
| commit | aca7d696f9a47ee7bb1185a9ca13b3215fe0ada6 |
| parent | a97b409420a0c535cad6861ca2a4eaecbd09faeb |
| author | Tim Blechmann <tim.blechmann@qt.io> |
| committer | Tim Blechmann <tim.blechmann@qt.io> |
| commit time | Tue, 24 Feb 2026 13:00:39 +0800 |