Commit e8f5bf4d authored by Mike JS. Choi's avatar Mike JS. Choi Committed by Soomin Lee

VLCMedia: Add isEqual

(cherry picked from commit 005bcd70)
Signed-off-by: Soomin Lee's avatarSoomin Lee <bubu@mikan.io>
parent e3031729
......@@ -368,6 +368,12 @@ static void HandleMediaParsedChanged(const libvlc_event_t * event, void * self)
return p_md == [media libVLCMediaDescriptor] ? NSOrderedSame : NSOrderedAscending;
}
- (BOOL)isEqual:(id)other
{
return ([other isKindOfClass: [VLCMedia class]] &&
[other libVLCMediaDescriptor] == p_md);
}
- (VLCTime *)length
{
if (!_length) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment