]> git.sesse.net Git - vlc/commitdiff
osx/framework: minor rtp streaming improvement
authorFelix Paul Kühne <fkuehne@videolan.org>
Sat, 19 Dec 2009 16:04:22 +0000 (17:04 +0100)
committerFelix Paul Kühne <fkuehne@videolan.org>
Sat, 19 Dec 2009 16:04:22 +0000 (17:04 +0100)
projects/macosx/framework/Sources/VLCStreamOutput.m

index f33ca2217532b1936e78fe9c19d2226bfe7d49df..1fba281421c82d86daabedd6a9e9a6b13c8efd27 100644 (file)
@@ -49,7 +49,8 @@
                                             [NSDictionary dictionaryWithObjectsAndKeys:
                                                 @"ts", @"muxer",
                                                 @"file", @"access",
-                                                @"sap", @"sdp",
+                                                @"sdp", @"sdp",
+                                                @"sap", @"sap",
                                                 name, @"name",
                                                 @"239.255.1.1", @"destination", nil
                                             ], @"rtpOptions",
         NSString * destination = [rtpOptions objectForKey:@"destination"];
         NSString * sdp = [rtpOptions objectForKey:@"sdp"];
         NSString * name = [rtpOptions objectForKey:@"name"];
+        NSString * sap = [rtpOptions objectForKey:@"sap"];
         if( muxer )       [subOptions addObject:[NSString stringWithFormat:@"muxer=%@", muxer]];
         if( destination ) [subOptions addObject:[NSString stringWithFormat:@"dst=%@", destination]];
         if( sdp )      [subOptions addObject:[NSString stringWithFormat:@"sdp=%@", sdp]];
+        if( sap )      [subOptions addObject:@"sap"];
         if( name )      [subOptions addObject:[NSString stringWithFormat:@"name=\"%@\"", name]];
         [optionsAsArray addObject:[NSString stringWithFormat:@"rtp{%@}", [subOptions componentsJoinedByString:@","]]];
         [subOptions removeAllObjects];