Draft: omxvideocodec: avoid double flush during teardown
Copied from https://gitlab.freedesktop.org//gstreamer/gst-omx/-/merge_requests/60
In order to save some precious ms in a multiple omx pipeline configuration, flush should be performed only once during the element teardown and after putting the gst_omx_component_set_state to OMX_StateIdle , avoiding a slow port creation.