Skip to content
Snippets Groups Projects
Commit b4ff9a8c authored by Claudio Cambra's avatar Claudio Cambra Committed by Jean-Baptiste Kempf
Browse files

macosx: Safeguard against nil displayLinkContext in collection view flow layout animation


Signed-off-by: default avatarClaudio Cambra <developer@claudiocambra.com>
parent 8af0af8b
No related branches found
No related tags found
1 merge request!6539macosx: Fix crash when switching library segments when supplementary detail view is open
Pipeline #546324 passed with stages
in 29 minutes and 9 seconds
......@@ -452,6 +452,10 @@ static CVReturn detailViewAnimationCallback(
CVOptionFlags *flagsOut,
void *displayLinkContext)
{
if (displayLinkContext == nil) {
return kCVReturnError;
}
VLCLibraryCollectionViewFlowLayout *bridgedSelf = (__bridge VLCLibraryCollectionViewFlowLayout *)displayLinkContext;
BOOL animationFinished = NO;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment