Przeglądaj źródła

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 lat temu
rodzic
commit
fb1a666aa8

+ 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];