[vlc-commits] macosx: Fix trying to load playlist as an SD

Marvin Scholz git at videolan.org
Sun Dec 16 21:31:27 CET 2018


vlc/vlc-3.0 | branch: master | Marvin Scholz <epirat07 at gmail.com> | Tue Oct 30 01:27:00 2018 +0100| [63c16cb099586ef73e3f105e2740f505c09a7896] | committer: Jean-Baptiste Kempf

macosx: Fix trying to load playlist as an SD

The sdtype of VLCSourceListItem was not correctly initialized to -1,
which caused the macosx interface trying to load the playlist like am
SD module, which does not work.

(cherry picked from commit 55acd54c9d6258645bbcd0376d39c5d7d88500cb)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=63c16cb099586ef73e3f105e2740f505c09a7896
---

 modules/gui/macosx/VLCTintedImageButtonCell.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/modules/gui/macosx/VLCTintedImageButtonCell.h b/modules/gui/macosx/VLCTintedImageButtonCell.h
index 78791f98f4..baf429247c 100644
--- a/modules/gui/macosx/VLCTintedImageButtonCell.h
+++ b/modules/gui/macosx/VLCTintedImageButtonCell.h
@@ -27,4 +27,14 @@
 
 @property (nonatomic) IBInspectable NSColor *imageTintColor;
 
+- (id)init
+{
+    self = [super init];
+    if (self) {
+        _sdtype = -1; // No SD type set
+    }
+
+    return self;
+}
+
 @end



More information about the vlc-commits mailing list