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

Marvin Scholz git at videolan.org
Tue Oct 30 01:29:02 CET 2018


vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Tue Oct 30 01:27:00 2018 +0100| [55acd54c9d6258645bbcd0376d39c5d7d88500cb] | committer: Marvin Scholz

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.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=55acd54c9d6258645bbcd0376d39c5d7d88500cb
---

 modules/gui/macosx/VLCSourceListItem.m | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/modules/gui/macosx/VLCSourceListItem.m b/modules/gui/macosx/VLCSourceListItem.m
index a2e505b239..05a9aa7d08 100644
--- a/modules/gui/macosx/VLCSourceListItem.m
+++ b/modules/gui/macosx/VLCSourceListItem.m
@@ -25,4 +25,14 @@
 
 @implementation VLCSourceListItem
 
+- (id)init
+{
+    self = [super init];
+    if (self) {
+        _sdtype = -1; // No SD type set
+    }
+
+    return self;
+}
+
 @end



More information about the vlc-commits mailing list