omxvideo{enc,dec}: stop calling shutdown() in change_state
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Fri, 25 May 2018 12:44:16 +0000 (14:44 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 30 Aug 2018 08:59:30 +0000 (10:59 +0200)
commit3b92b225540c861131fad96730d4546460c2ede6
tree07b145f90d33804ddde09982729d25979f9853a2
parent457e1b9a5ea17b1055ac153d213d5b9575311c06
omxvideo{enc,dec}: stop calling shutdown() in change_state

This is no longer needed since we implemented close() vfuncs as the
encoder/decoder base class already take care of calling close() (which
is calling shutdown()) in its own change_state implementation.

We also move the shut down of the component from PAUSED_TO_READY to READY_TO_NULL.
By doing so upstream will have already deactivated the pool from the
encoder and so won't be preventing the OMX state change as the buffers
will all be released.

https://bugzilla.gnome.org/show_bug.cgi?id=796918
omx/gstomxvideodec.c
omx/gstomxvideoenc.c