Update MediaEngine.cpp

fix new feature in MediaEngine.cpp