macOS: Implement isEqual for VLCRendererItem
authorMarvin Scholz <epirat07@gmail.com>
Sat, 24 Jun 2017 16:33:49 +0000 (18:33 +0200)
committerMarvin Scholz <epirat07@gmail.com>
Sat, 24 Jun 2017 16:45:19 +0000 (18:45 +0200)
modules/gui/macosx/VLCRendererItem.m

index 4c90fa4..614f866 100644 (file)
     var_SetString(playlist , "sout", sout.UTF8String);
 }
 
+- (BOOL)isEqual:(id)object
+{
+    if (![object isKindOfClass:[VLCRendererItem class]]) {
+        return NO;
+    }
+    VLCRendererItem *other = object;
+    return (other.rendererItem == self.rendererItem);
+}
+
 @end