[vlc-commits] [Git][videolan/vlc][master] macosx: Also size unknown media as video, fixing issues in video views

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Sat Apr 27 21:28:21 UTC 2024



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
7994e83b by Claudio Cambra at 2024-04-27T21:10:09+00:00
macosx: Also size unknown media as video, fixing issues in video views

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

- - - - -


1 changed file:

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


Changes:

=====================================
modules/gui/macosx/library/VLCLibraryCollectionViewItem.m
=====================================
@@ -227,7 +227,7 @@ const CGFloat VLCLibraryCollectionViewItemMaximumDisplayedProgress = 0.95;
     if([actualItem isKindOfClass:[VLCMediaLibraryMediaItem class]]) {
         VLCMediaLibraryMediaItem * const mediaItem = (VLCMediaLibraryMediaItem *)actualItem;
 
-        if (mediaItem.mediaType == VLC_ML_MEDIA_TYPE_VIDEO) {
+        if (mediaItem.mediaType == VLC_ML_MEDIA_TYPE_VIDEO || mediaItem.mediaType == VLC_ML_MEDIA_TYPE_UNKNOWN) {
             VLCMediaLibraryTrack * const videoTrack = mediaItem.firstVideoTrack;
             [self showVideoSizeIfNeededForWidth:videoTrack.videoWidth
                                       andHeight:videoTrack.videoHeight];



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/7994e83bbdc233f8fa12a8ccfc7279edda3360ed

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