Update MediaEngine.cpp

Support both old and new savestate for mediaengin.cpp