Commit abcd6bc8 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

VLCMedia: Don't use setLength in -length. It is bad for bindings.

parent 09020b63
...@@ -245,8 +245,7 @@ static void HandleMediaSubItemAdded(const libvlc_event_t * event, void * self) ...@@ -245,8 +245,7 @@ static void HandleMediaSubItemAdded(const libvlc_event_t * event, void * self)
// Testing to see if the pointer exists is not required, if the pointer is null // Testing to see if the pointer exists is not required, if the pointer is null
// then the release message is not sent to it. // then the release message is not sent to it.
delegate = nil; delegate = nil;
[self setLength:nil]; [length release];
[url release]; [url release];
[subitems release]; [subitems release];
[metaDictionary release]; [metaDictionary release];
...@@ -281,7 +280,7 @@ static void HandleMediaSubItemAdded(const libvlc_event_t * event, void * self) ...@@ -281,7 +280,7 @@ static void HandleMediaSubItemAdded(const libvlc_event_t * event, void * self)
long long duration = libvlc_media_get_duration( p_md, NULL ); long long duration = libvlc_media_get_duration( p_md, NULL );
if (duration > -1) if (duration > -1)
{ {
[self setLength:[VLCTime timeWithNumber:[NSNumber numberWithLongLong:duration]]]; length = [[VLCTime timeWithNumber:[NSNumber numberWithLongLong:duration]] retain];
return [[length retain] autorelease]; return [[length retain] autorelease];
} }
return [VLCTime nullTime]; return [VLCTime nullTime];
......
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