Fixed issue that getMediaInfo always returned the first record.