소스 검색

VLCHTTPUploaderController: Post NewFileAdded notification

Soomin Lee 7 년 전
부모
커밋
adf0381c5f
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      Sources/VLCHTTPUploaderController.m

+ 4 - 0
Sources/VLCHTTPUploaderController.m

@@ -25,6 +25,7 @@
 #import <arpa/inet.h>
 
 #if TARGET_OS_IOS
+#import "VLC_iOS-Swift.h"
 #import "VLCMediaFileDiscoverer.h"
 #endif
 
@@ -328,6 +329,9 @@
     }
 
     [[VLCMediaFileDiscoverer sharedInstance] performSelectorOnMainThread:@selector(updateMediaList) withObject:nil waitUntilDone:NO];
+    // FIXME: Replace notifications by cleaner observers
+    [[NSNotificationCenter defaultCenter] postNotificationName:NSNotification.VLCNewFileAddedNotification
+                                                        object:self];
 #endif
 }