[vlc-commits] macOS: Fix logical flaws in VLCRendererDiscovery

Marvin Scholz git at videolan.org
Sat Jun 24 18:46:45 CEST 2017


vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Sat Jun 24 18:35:28 2017 +0200| [c6554d4dc95e2fcf6fc810f52a445dd8dac0bf1d] | committer: Marvin Scholz

macOS: Fix logical flaws in VLCRendererDiscovery

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c6554d4dc95e2fcf6fc810f52a445dd8dac0bf1d
---

 modules/gui/macosx/VLCRendererDiscovery.m | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/gui/macosx/VLCRendererDiscovery.m b/modules/gui/macosx/VLCRendererDiscovery.m
index a511e4d05c..8270adc002 100644
--- a/modules/gui/macosx/VLCRendererDiscovery.m
+++ b/modules/gui/macosx/VLCRendererDiscovery.m
@@ -120,13 +120,13 @@ static void renderer_event_item_removed(vlc_renderer_discovery_t *rd,
     for (VLCRendererItem *item in _rendererItems) {
         if (item.rendererItem == base_item) {
             result_item = item;
-            return;
+            break;
         }
     }
     if (result_item) {
-        [_rendererItems removeObject:result_item];
         if (_delegate)
             [_delegate removedRendererItem:result_item from:self];
+        [_rendererItems removeObject:result_item];
     } else {
         msg_Err(p_intf, "VLCRendererDiscovery could not find item to remove!");
     }



More information about the vlc-commits mailing list