ohos: Fix video playback showing no picture


Video playback produced audio but no picture. OH_AVPlayer only accepts
a video surface between SetSource and Prepare, and that surface
depends on the video sink's RHI, which arrives asynchronously. The
source was applied before the sink had one, so the player prepared
without a surface and never decoded a frame.

Defer applying the source until the video output is known, then hold
it until the sink has an RHI and prepare with the surface attached. A
sink that is never attached to a renderer gets no RHI, so give up
after a short wait and prepare without video rather than stall. A
play() call made while the source is deferred is remembered.

Task-number: QTBUG-148852
Pick-to: 6.12
Change-Id: Ia4ecc48a36d0983bfb754b9aeaa589ae32a02579
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
commita7ea998c6aaf9d1d1a23f3fd93595a1dffccdbcd
parentd9d6b4471996a8b6c3cc5e8e42b3f4b59c81ceb8
authorAndy Nichols <andy.nichols@qt.io>
committerAndy Nichols <andy.nichols@qt.io>
commit timeThu, 27 Aug 2026 12:57:25 +0000