[media] media-entity.h: rename entity.type to entity.function