omx: always consider component in 'invalid' state when an error occured
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 7 May 2018 09:59:08 +0000 (11:59 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Fri, 8 Jun 2018 07:36:56 +0000 (09:36 +0200)
commit3498f81d1f40fbda563863f2fc41d20e85c15907
tree2cb6c4f0e5327acc68a92a3add1cb2799ec050a4
parentebcadd998484a7ff69d54d0b878aae1c66715aab
omx: always consider component in 'invalid' state when an error occured

gst_omx_component_get_state() used to early return if there was no
pending state change. So if the component raised an error it wasn't
considered in the invalid state until the next requested state change.

Fix this by checking first if we received an error.

https://bugzilla.gnome.org/show_bug.cgi?id=795874
omx/gstomx.c