Draft: omxvideocodec: avoid double flush during teardown

Closed Stéphane Cerveau requested to merge dabrain34/gst-omx:dab_avoid_flush_twice into master

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.

Edited by Stéphane Cerveau

Merge request reports