[vlc-commits] [Git][videolan/vlc][master] macosx: Display artwork for non-media-library audios
Jean-Baptiste Kempf (@jbk)
gitlab at videolan.org
Sat Apr 27 10:58:49 UTC 2024
Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC
Commits:
44205b0c by Claudio Cambra at 2024-04-27T10:38:52+00:00
macosx: Display artwork for non-media-library audios
Instead of black vout
Signed-off-by: Claudio Cambra <developer at claudiocambra.com>
- - - - -
1 changed file:
- modules/gui/macosx/windows/video/VLCMainVideoViewController.m
Changes:
=====================================
modules/gui/macosx/windows/video/VLCMainVideoViewController.m
=====================================
@@ -24,6 +24,7 @@
#import "extensions/NSWindow+VLCAdditions.h"
+#import "library/VLCInputItem.h"
#import "library/VLCLibraryDataTypes.h"
#import "library/VLCLibraryUIUnits.h"
#import "library/VLCLibraryWindow.h"
@@ -159,7 +160,13 @@
VLCMediaLibraryMediaItem * const mediaItem = [VLCMediaLibraryMediaItem mediaItemForURL:controller.URLOfCurrentMediaItem];
- const BOOL decorativeViewVisible = mediaItem != nil && mediaItem.mediaType == VLC_ML_MEDIA_TYPE_AUDIO;
+ BOOL decorativeViewVisible = NO;
+ if (mediaItem != nil) {
+ decorativeViewVisible = mediaItem.mediaType == VLC_ML_MEDIA_TYPE_AUDIO;
+ } else {
+ VLCInputItem * const inputItem = controller.currentMedia;
+ decorativeViewVisible = inputItem != nil && controller.videoTracks.count == 0;
+ }
_audioDecorativeView.hidden = !decorativeViewVisible;
if (decorativeViewVisible) {
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/44205b0c8400d5b7fba5cc0531a42fb12bae5a87
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/44205b0c8400d5b7fba5cc0531a42fb12bae5a87
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