macOS: Implement isEqual for VLCRendererItem
[vlc.git] / 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