[vlc-commits] [Git][videolan/vlc][master] macosx: Safeguard against nil displayLinkContext in collection view flow layout animation
Jean-Baptiste Kempf (@jbk)
gitlab at videolan.org
Wed Dec 18 22:35:23 UTC 2024
Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC
Commits:
b4ff9a8c by Claudio Cambra at 2024-12-18T22:12:39+00:00
macosx: Safeguard against nil displayLinkContext in collection view flow layout animation
Signed-off-by: Claudio Cambra <developer at claudiocambra.com>
- - - - -
1 changed file:
- modules/gui/macosx/library/VLCLibraryCollectionViewFlowLayout.m
Changes:
=====================================
modules/gui/macosx/library/VLCLibraryCollectionViewFlowLayout.m
=====================================
@@ -452,6 +452,10 @@ static CVReturn detailViewAnimationCallback(
CVOptionFlags *flagsOut,
void *displayLinkContext)
{
+ if (displayLinkContext == nil) {
+ return kCVReturnError;
+ }
+
VLCLibraryCollectionViewFlowLayout *bridgedSelf = (__bridge VLCLibraryCollectionViewFlowLayout *)displayLinkContext;
BOOL animationFinished = NO;
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/b4ff9a8c7c6dd084047a122926b9ee995860cd6d
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/b4ff9a8c7c6dd084047a122926b9ee995860cd6d
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