[vlc-devel] commit: VLCKit: fix a leak. (Pierre d'Herbemont )
git version control
git at videolan.org
Sat Dec 5 16:42:29 CET 2009
vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Thu Dec 3 12:12:07 2009 +0100| [d2b9c3af8a2ffac4946c4b6a3839839930791449] | committer: Pierre d'Herbemont
VLCKit: fix a leak.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d2b9c3af8a2ffac4946c4b6a3839839930791449
---
.../macosx/framework/Sources/VLCStreamOutput.m | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/projects/macosx/framework/Sources/VLCStreamOutput.m b/projects/macosx/framework/Sources/VLCStreamOutput.m
index d99c1c2..eec769a 100644
--- a/projects/macosx/framework/Sources/VLCStreamOutput.m
+++ b/projects/macosx/framework/Sources/VLCStreamOutput.m
@@ -44,17 +44,20 @@
}
+ (id)rtpBroadcastStreamOutputWithSAPAnnounce:(NSString *)announceName
{
- return [self streamOutputWithOptionDictionary:[NSDictionary dictionaryWithObjectsAndKeys:
+ NSString *name = [announceName copy];
+ id output = [self streamOutputWithOptionDictionary:[NSDictionary dictionaryWithObjectsAndKeys:
[NSDictionary dictionaryWithObjectsAndKeys:
@"ts", @"muxer",
@"file", @"access",
@"sap", @"sdp",
- [announceName copy], @"name",
+ name, @"name",
@"239.255.1.1", @"destination", nil
], @"rtpOptions",
nil
]
];
+ [name release];
+ return output;
}
+ (id)rtpBroadcastStreamOutput
More information about the vlc-devel
mailing list