浏览代码

VLCNetworkServerBrowserVLCMedia: Set media parse timeout to 0

Otherwise it was set to the default value `-1` which would lead to
timeouts.

In the case of network browsing, this lead to dialog issues where login
dialog would get interrupted by timeouts.
Soomin Lee 5 年之前
父节点
当前提交
fb1a666aa8
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      SharedSources/ServerBrowsing/General/VLCNetworkServerBrowserVLCMedia.m

+ 2 - 1
SharedSources/ServerBrowsing/General/VLCNetworkServerBrowserVLCMedia.m

@@ -38,7 +38,8 @@
         _mediaList = [[VLCMediaList alloc] init];
         _rootMedia = media;
         _rootMedia.delegate = self;
-        [media parseWithOptions:VLCMediaParseNetwork|VLCMediaDoInteract];
+        // Set timeout to 0 in order to avoid getting interrupted in dialogs for timeout reasons
+        [media parseWithOptions:VLCMediaParseNetwork|VLCMediaDoInteract timeout:0];
         _mediaListUnfiltered = [_rootMedia subitems];
         _mediaListUnfiltered.delegate = self;
         NSMutableDictionary *mediaOptionsNoFilter = [mediaOptions mutableCopy];