Fix for Podcast detection - if there is no metadata

This commit is contained in:
ejurgensen 2013-10-19 10:11:33 +02:00
parent 6eaf47a8d6
commit eb1e827f1d
1 changed files with 1 additions and 1 deletions

View File

@ -617,7 +617,7 @@ scan_metadata_ffmpeg(char *file, struct media_file_info *mfi)
mfi->media_kind = 2;
}
/* Podcasts are either media_kind 4, 6 or 7 - unsure what the difference is */
else if (strcmp(mfi->genre,"Podcast") == 0)
else if ((mdcount > 0) && mfi->genre && (strcmp(mfi->genre,"Podcast") == 0))
{
mfi->media_kind = 4;
}