[vlc-commits] macOS: Implement isEqual for VLCRendererItem

Marvin Scholz git at videolan.org
Sat Jun 24 18:46:36 CEST 2017


vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Sat Jun 24 18:33:49 2017 +0200| [0c24a3703f5fbfc7227034cebda7928eabeb327e] | committer: Marvin Scholz

macOS: Implement isEqual for VLCRendererItem

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

 modules/gui/macosx/VLCRendererItem.m | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/modules/gui/macosx/VLCRendererItem.m b/modules/gui/macosx/VLCRendererItem.m
index 4c90fa47b8..614f866d0c 100644
--- a/modules/gui/macosx/VLCRendererItem.m
+++ b/modules/gui/macosx/VLCRendererItem.m
@@ -93,4 +93,13 @@
     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



More information about the vlc-commits mailing list