[vlc-commits] [Git][videolan/vlc][master] macosx: Fix crash with hero view badly using just instantiated object's property

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Tue Oct 8 09:39:27 UTC 2024



Felix Paul Kühne pushed to branch master at VideoLAN / VLC


Commits:
72b71432 by Claudio Cambra at 2024-10-08T08:41:09+00:00
macosx: Fix crash with hero view badly using just instantiated object's property

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

- - - - -


1 changed file:

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


Changes:

=====================================
modules/gui/macosx/library/VLCLibraryHeroView.m
=====================================
@@ -199,7 +199,9 @@
         return;
     }
 
-    VLCLibraryRepresentedItem * const item = [[VLCLibraryRepresentedItem alloc] initWithItem:mediaItem parentType:item.parentType];
+    VLCLibraryRepresentedItem * const item =
+        [[VLCLibraryRepresentedItem alloc] initWithItem:mediaItem
+                                             parentType:self.representedItem.parentType];
     self.representedItem = item;
 }
 



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

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