[vlc-devel] commit: macosx/framework: -[VLCMedia length] returns null every time after the first call. (Mike Schrag )
git version control
git at videolan.org
Sun Dec 6 22:20:03 CET 2009
vlc | branch: master | Mike Schrag <mschrag at pobox.com> | Wed Oct 21 17:14:09 2009 -0400| [c7b4a26e8427cd0647df5748cdc909961b10049d] | committer: Pierre d'Herbemont
macosx/framework: -[VLCMedia length] returns null every time after the first call.
Signed-off-by: Pierre d'Herbemont <pdherbemont at free.fr>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c7b4a26e8427cd0647df5748cdc909961b10049d
---
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
More information about the vlc-devel
mailing list