[Details] On EOS event we need to drain the pipeline, but not destroy the codec [Status] Code for this is already present on the branch by ddompe [Requirement] 
Change draining functionality to avoid destroying the codec