uridecodebin: Set source element to READY before querying it
authorThibault Saunier <tsaunier@igalia.com>
Tue, 31 Jan 2023 16:21:48 +0000 (13:21 -0300)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 21 Feb 2023 12:07:57 +0000 (12:07 +0000)
commit286020bd23f204f7384ac552e9b876fc196463c5
treeada1533ab76629c58b05b89f91a141c469cda47c
parent1ca3203bb6ee5a8965c0a6f59dd331a432ff01a9
uridecodebin: Set source element to READY before querying it

Generating the source element is done when uridecodebin is doing the
READY to PAUSED state change, so it is reasonable to set the new source
element to that state.

This also allows detecting early failures with backing libraries or
hardware (checks done in NULL->READY).

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4016>
subprojects/gst-plugins-base/gst/playback/gsturidecodebin.c