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

VLCKit: fix a leak.

parent cf8fe3c0
...@@ -44,17 +44,20 @@ ...@@ -44,17 +44,20 @@
} }
+ (id)rtpBroadcastStreamOutputWithSAPAnnounce:(NSString *)announceName + (id)rtpBroadcastStreamOutputWithSAPAnnounce:(NSString *)announceName
{ {
return [self streamOutputWithOptionDictionary:[NSDictionary dictionaryWithObjectsAndKeys: NSString *name = [announceName copy];
id output = [self streamOutputWithOptionDictionary:[NSDictionary dictionaryWithObjectsAndKeys:
[NSDictionary dictionaryWithObjectsAndKeys: [NSDictionary dictionaryWithObjectsAndKeys:
@"ts", @"muxer", @"ts", @"muxer",
@"file", @"access", @"file", @"access",
@"sap", @"sdp", @"sap", @"sdp",
[announceName copy], @"name", name, @"name",
@"239.255.1.1", @"destination", nil @"239.255.1.1", @"destination", nil
], @"rtpOptions", ], @"rtpOptions",
nil nil
] ]
]; ];
[name release];
return output;
} }
+ (id)rtpBroadcastStreamOutput + (id)rtpBroadcastStreamOutput
......
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