[vlc-devel] [PATCH] [VLCMedia length] returns null every time after the first call
Mike Schrag
mschrag at pobox.com
Wed Oct 21 23:14:09 CEST 2009
---
projects/macosx/framework/Sources/VLCMedia.m | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/projects/macosx/framework/Sources/VLCMedia.m b/projects/
macosx/framework/Sources/VLCMedia.m
index f24cb7b..f22fb6f 100644
--- a/projects/macosx/framework/Sources/VLCMedia.m
+++ b/projects/macosx/framework/Sources/VLCMedia.m
@@ -283,9 +283,10 @@ static void HandleMediaSubItemAdded(const
libvlc_event_t * event, void * self)
{
[self setLength:[VLCTime timeWithNumber:[NSNumber
numberWithLongLong:duration]]];
return [[length retain] autorelease];
- }
+ }
+ return [VLCTime nullTime];
}
- return [VLCTime nullTime];
+ return [[length retain] autorelease];
}
- (VLCTime *)lengthWaitUntilDate:(NSDate *)aDate
--
1.6.4.4
More information about the vlc-devel
mailing list