Commit a7e4516f authored by Marvin Scholz's avatar Marvin Scholz

bonjour: Work around a macOS 10.12 bug

NSNetServiceBrowser and NSNetService do not properly release the
delegates, see https://crbug.com/657495 and
https://openradar.appspot.com/28943305
parent d8203596
......@@ -207,6 +207,10 @@ NSString *const VLCBonjourRendererDemux = @"VLCBonjourRendererDemux";
{
[_serviceBrowsers makeObjectsPerformSelector:@selector(stop)];
/* Work around a macOS 10.12 bug, see https://openradar.appspot.com/28943305 */
[_serviceBrowsers makeObjectsPerformSelector:@selector(setDelegate:) withObject:nil];
[_resolvedNetServices makeObjectsPerformSelector:@selector(setDelegate:) withObject:nil];
for (NSValue *item in _inputItemsForNetServices) {
if (_isRendererDiscovery) {
[self removeRawRendererItem:item];
......
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