Should m_codec be reset here, or doesn't matter? (Log?)