properly update cached this_codec