[PATCH v3 6/8] quartz: Use file APIs directly in get_media_type().