From a294f624e0e1e55fd5757583007469708cf3a494 Mon Sep 17 00:00:00 2001 From: Justin Maggard Date: Fri, 26 Jun 2015 00:03:31 -0700 Subject: [PATCH] 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) --- inotify.c | 1 + 1 file changed, 1 insertion(+) diff --git a/inotify.c b/inotify.c index 03aff5e..8e34347 100644 --- a/inotify.c +++ b/inotify.c @@ -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) &&