[vlc-commits] [Git][videolan/vlc][master] macosx: Ensure directory input node is always cleared and regenerated freshly

Steve Lhomme (@robUx4) gitlab at videolan.org
Tue Jan 10 05:10:18 UTC 2023



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
d226d830 by Claudio Cambra at 2023-01-10T04:57:24+00:00
macosx: Ensure directory input node is always cleared and regenerated freshly

Signed-off-by: Claudio Cambra <developer at claudiocambra.com>

- - - - -


1 changed file:

- modules/gui/macosx/media-source/VLCMediaSource.m


Changes:

=====================================
modules/gui/macosx/media-source/VLCMediaSource.m
=====================================
@@ -197,6 +197,7 @@ static const char *const localDevicesDescription = "My Machine";
         input_item_node_t *vlcInputNode = inputNode.vlcInputItemNode;
         NSURL *dirUrl = [NSURL URLWithString:inputNode.inputItem.MRL];
 
+        [self clearChildNodesForNode:vlcInputNode]; // Clear existing nodes, refresh
         [self generateChildNodesForDirectoryNode:vlcInputNode withUrl:dirUrl];
         return;
     }



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/d226d830c8bf5ed8b8b99b836a8c63e870116b91

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/d226d830c8bf5ed8b8b99b836a8c63e870116b91
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list