winegstreamer: Wait on error conditions when initializing GStreamer.
commitcc116548fd006951943e60cddb7d79ec8c363213
authorGiovanni Mascellani <gmascellani@codeweavers.com>
Tue, 19 Jan 2021 09:02:07 +0000 (19 10:02 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 19 Jan 2021 19:21:40 +0000 (19 20:21 +0100)
tree2e59392d514a9ca87c08529df824e9f756d17b17
parente0238b6c767ada383522792be90247b6453ec506
winegstreamer: Wait on error conditions when initializing GStreamer.

GStreamer doesn't necessarily signal all error when setting the
PLAYING or PAUSED state. If Wine just waits on no-more-pads, it risks
a deadlock if an error is signaled after gst_element_get_state was
called.

Signed-off-by: Giovanni Mascellani <gmascellani@codeweavers.com>
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/winegstreamer/gstdemux.c