Commit 005bcd70 authored by Mike JS. Choi's avatar Mike JS. Choi Committed by Carola Nitz

VLCMedia: Add isEqual

parent 31baf070
......@@ -366,6 +366,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