[vlc-commits] [Git][videolan/vlc][master] macosx: fix an exception when library input item is nil

Steve Lhomme (@robUx4) gitlab at videolan.org
Sun Jan 26 14:42:45 UTC 2025



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
55b9ae56 by Maxime Chapelet at 2025-01-26T14:18:58+00:00
macosx: fix an exception when library input item is nil

Given libraryMediaItem is nil in this context, an assertion was
thrown in the next `resumePlaybackPositionForLibraryMediaItem:`
call.

This patch make the code return when libraryMediaItem is nil to
prevent the assertion.

- - - - -


1 changed file:

- modules/gui/macosx/playqueue/VLCPlaybackContinuityController.m


Changes:

=====================================
modules/gui/macosx/playqueue/VLCPlaybackContinuityController.m
=====================================
@@ -179,6 +179,7 @@ static NSString *VLCRecentlyPlayedMediaListKey = @"recentlyPlayedMediaList";
         [self resumeLegacyPlaybackPositionForInputItem:inputItem
                                                    ask:(settingValue == 0)
                                                 player:playerController];
+        return;
     }
 
     [self resumePlaybackPositionForLibraryMediaItem:libraryMediaItem



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/55b9ae56b5e7a8acf7afc3939b333f874c310d87

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