scanner: check defined media types before parsing files

This commit is contained in:
Justin Maggard
2014-04-28 16:01:30 -07:00
parent f9c37fb205
commit 61bb91ecc9
3 changed files with 7 additions and 7 deletions

View File

@ -422,7 +422,7 @@ inotify_insert_file(char * name, const char * path)
if( !depth )
{
//DEBUG DPRINTF(E_DEBUG, L_INOTIFY, "Inserting %s\n", name);
insert_file(name, path, id+2, get_next_available_id("OBJECTS", id));
insert_file(name, path, id+2, get_next_available_id("OBJECTS", id), types);
sqlite3_free(id);
if( (is_audio(path) || is_playlist(path)) && next_pl_fill != 1 )
{