[vlc-commits] [Git][videolan/vlc][master] 2 commits: macosx: Do not try to create genre display string array if genre is nil

Steve Lhomme (@robUx4) gitlab at videolan.org
Sun Dec 1 15:44:12 UTC 2024



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
2b4466a7 by Claudio Cambra at 2024-12-01T15:24:01+00:00
macosx: Do not try to create genre display string array if genre is nil

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

- - - - -
debeb7da by Claudio Cambra at 2024-12-01T15:24:01+00:00
macosx: If genre nil still default to date for secondary detail string

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

- - - - -


1 changed file:

- modules/gui/macosx/library/VLCLibraryDataTypes.m


Changes:

=====================================
modules/gui/macosx/library/VLCLibraryDataTypes.m
=====================================
@@ -1257,7 +1257,9 @@ static NSString *genreArrayDisplayString(NSArray<VLCMediaLibraryGenre *> * const
     case VLC_ML_MEDIA_SUBTYPE_ALBUMTRACK:
     {
         VLCMediaLibraryGenre * const genre = [VLCMediaLibraryGenre genreWithID:self.genreID];
-        return genreArrayDisplayString(@[genre]);
+        if (genre != nil) {
+            return genreArrayDisplayString(@[genre]);
+        }
     }
     default:
         return self.inputItem.date;



View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/cb73b3a347be78cd7a87fc47fbe064fbf26404fc...debeb7daf927cff2b54a5b26d8252c7a81afb14f

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/cb73b3a347be78cd7a87fc47fbe064fbf26404fc...debeb7daf927cff2b54a5b26d8252c7a81afb14f
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