[vlc-commits] [Git][videolan/vlc][master] macosx: Fix assert in audio artist view

Steve Lhomme (@robUx4) gitlab at videolan.org
Fri Mar 29 08:07:53 UTC 2024



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
0b10b3c1 by Ankit Meel at 2024-03-29T08:07:40+00:00
macosx: Fix assert in audio artist view

- - - - -


1 changed file:

- modules/gui/macosx/library/audio-library/VLCLibraryAudioViewController.m


Changes:

=====================================
modules/gui/macosx/library/audio-library/VLCLibraryAudioViewController.m
=====================================
@@ -463,13 +463,13 @@ NSString *VLCLibraryPlaceholderAudioViewIdentifier = @"VLCLibraryPlaceholderAudi
 
 - (void)updatePresentedView
 {
+    _audioDataSource.audioLibrarySegment = [self currentLibrarySegmentToAudioLibrarySegment];
     if (_audioDataSource.libraryModel.numberOfAudioMedia == 0) {
         [self presentPlaceholderAudioView];
     } else {
         [self prepareAudioLibraryView];
         [self hideAllViews];
 
-        _audioDataSource.audioLibrarySegment = [self currentLibrarySegmentToAudioLibrarySegment];
         const VLCLibraryViewModeSegment viewModeSegment = [self viewModeSegmentForCurrentLibrarySegment];
 
         if (viewModeSegment == VLCLibraryListViewModeSegment) {



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

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/0b10b3c1395a0b0050f5a96db1d785903c3b875b
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