Commit 82e7de5f authored by Felix Paul Kühne's avatar Felix Paul Kühne

fix upnpx crash until resolved upstream

(cherry picked from commit e12e68580f7d0de77d6e68fb8cf9e6e536c1a65f)
parent 5610359c
......@@ -64,6 +64,7 @@
BOOL _udnpDiscoveryRunning;
NSTimer *_searchTimer;
BOOL _setup;
}
@property (nonatomic) VLCHTTPUploaderController *uploadController;
......@@ -240,7 +241,10 @@
[[managerInstance DB] addObserver:self];
//Optional; set User Agent
[[managerInstance SSDP] setUserAgentProduct:[NSString stringWithFormat:@"VLCforiOS/%@", [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleShortVersionString"]] andOS:[NSString stringWithFormat:@"iOS/%@", [[UIDevice currentDevice] systemVersion]]];
if (!_setup) {
[[managerInstance SSDP] setUserAgentProduct:[NSString stringWithFormat:@"VLCforiOS/%@", [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleShortVersionString"]] andOS:[NSString stringWithFormat:@"iOS/%@", [[UIDevice currentDevice] systemVersion]]];
_setup = YES;
}
//Search for UPnP Devices
[[managerInstance SSDP] startSSDP];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment