inotify: Fix new video file detection for TYPE_AUDIO|TYPE_VIDEO media_dirs.

We were missing a return in one of the cases for the switch.

Patch #150 from user Shrimpkin.
Fixes: Support Request #40 (Inotify don't work when add *.mts video)
This commit is contained in:
Justin Maggard 2015-06-26 00:03:31 -07:00
parent 13d36533b5
commit a294f624e0

View File

@ -328,6 +328,7 @@ inotify_insert_file(char * name, const char * path)
if( !is_audio(path) &&
!is_video(path) &&
!is_playlist(path) )
return -1;
break;
case TYPE_AUDIO|TYPE_IMAGES:
if( !is_image(path) &&