Merge "media: release codec in the case of exception" into mnc-dev