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>