Преглед на файлове

osx/framework: minor rtp streaming improvement

Felix Paul Kühne преди 15 години
родител
ревизия
4d7bc7e34d
променени са 1 файла, в които са добавени 4 реда и са изтрити 1 реда
  1. 4 1
      Sources/VLCStreamOutput.m

+ 4 - 1
Sources/VLCStreamOutput.m

@@ -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",
@@ -200,9 +201,11 @@
         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];