common: Fix a crash of direct rendering when changing decoder configuration.