| 1528 | | [o_opts_string appendFormat: |
|---|
| 1529 | | @":sout=#%s%sstandard{mux=%s,dst=%s,access=%s,%s}", |
|---|
| 1530 | | [o_duplicateCmd UTF8String], [o_trnscdCmd UTF8String], |
|---|
| 1531 | | [[[o_encapFormats objectAtIndex: [[o_userSelections |
|---|
| 1532 | | objectForKey: @"encapFormat"] intValue]] objectAtIndex:0] |
|---|
| 1533 | | UTF8String], [[o_userSelections objectForKey: @"stmgDest"] |
|---|
| 1534 | | UTF8String], [[[o_strmgMthds objectAtIndex: [[o_userSelections |
|---|
| 1535 | | objectForKey: @"stmgMhd"] intValue]] objectAtIndex:0] |
|---|
| 1536 | | UTF8String], [o_sap_option UTF8String]]; |
|---|
| | 1528 | if( [[o_strmgMthds objectAtIndex: [[o_userSelections objectForKey: @"stmgMhd"] intValue]] objectAtIndex:0] == @"rtp" ) |
|---|
| | 1529 | { |
|---|
| | 1530 | /* RTP is no access out, but a stream out module */ |
|---|
| | 1531 | [o_opts_string appendFormat: |
|---|
| | 1532 | @":sout=#%s%srtp{mux=%s,dst=%s,%s}", |
|---|
| | 1533 | [o_duplicateCmd UTF8String], [o_trnscdCmd UTF8String], |
|---|
| | 1534 | [[[o_encapFormats objectAtIndex: [[o_userSelections objectForKey: @"encapFormat"] intValue]] objectAtIndex:0] |
|---|
| | 1535 | UTF8String], |
|---|
| | 1536 | [[o_userSelections objectForKey: @"stmgDest"] UTF8String], |
|---|
| | 1537 | [o_sap_option UTF8String]]; |
|---|
| | 1538 | } |
|---|
| | 1539 | else |
|---|
| | 1540 | { |
|---|
| | 1541 | [o_opts_string appendFormat: |
|---|
| | 1542 | @":sout=#%s%sstandard{mux=%s,dst=%s,access=%s,%s}", |
|---|
| | 1543 | [o_duplicateCmd UTF8String], [o_trnscdCmd UTF8String], |
|---|
| | 1544 | [[[o_encapFormats objectAtIndex: [[o_userSelections objectForKey: @"encapFormat"] intValue]] objectAtIndex:0] |
|---|
| | 1545 | UTF8String], |
|---|
| | 1546 | [[o_userSelections objectForKey: @"stmgDest"] UTF8String], |
|---|
| | 1547 | [[[o_strmgMthds objectAtIndex: [[o_userSelections objectForKey: @"stmgMhd"] intValue]] objectAtIndex:0] |
|---|
| | 1548 | UTF8String], |
|---|
| | 1549 | [o_sap_option UTF8String]]; |
|---|
| | 1550 | } |
|---|
| 1541 | | [o_opts_string appendFormat: |
|---|
| 1542 | | @":sout=#%s%sstandard{mux=%s,dst=%s,access=%s}", |
|---|
| 1543 | | [o_duplicateCmd UTF8String], [o_trnscdCmd UTF8String], |
|---|
| 1544 | | [[[o_encapFormats objectAtIndex: [[o_userSelections |
|---|
| 1545 | | objectForKey: @"encapFormat"] intValue]] objectAtIndex:0] |
|---|
| 1546 | | UTF8String], [[o_userSelections objectForKey: |
|---|
| 1547 | | @"stmgDest"] UTF8String], [[[o_strmgMthds objectAtIndex: |
|---|
| 1548 | | [[o_userSelections objectForKey: @"stmgMhd"] intValue]] |
|---|
| 1549 | | objectAtIndex:0] UTF8String]]; |
|---|
| | 1555 | if( [[o_strmgMthds objectAtIndex: [[o_userSelections objectForKey: @"stmgMhd"] intValue]] objectAtIndex:0] == @"rtp" ) |
|---|
| | 1556 | { |
|---|
| | 1557 | /* RTP is different from the other protocols, as it isn't provided through an access out module anymore */ |
|---|
| | 1558 | [o_opts_string appendFormat: |
|---|
| | 1559 | @":sout=#%s%srtp{mux=%s,dst=%s}", |
|---|
| | 1560 | [o_duplicateCmd UTF8String], |
|---|
| | 1561 | [o_trnscdCmd UTF8String], |
|---|
| | 1562 | [[[o_encapFormats objectAtIndex: [[o_userSelections objectForKey: @"encapFormat"] intValue]] objectAtIndex:0] |
|---|
| | 1563 | UTF8String], |
|---|
| | 1564 | [[o_userSelections objectForKey: @"stmgDest"] UTF8String]]; |
|---|
| | 1565 | } |
|---|
| | 1566 | else |
|---|
| | 1567 | { |
|---|
| | 1568 | /* all other protocols are cool */ |
|---|
| | 1569 | [o_opts_string appendFormat: |
|---|
| | 1570 | @":sout=#%s%sstandard{mux=%s,dst=%s,access=%s}", |
|---|
| | 1571 | [o_duplicateCmd UTF8String], |
|---|
| | 1572 | [o_trnscdCmd UTF8String], |
|---|
| | 1573 | [[[o_encapFormats objectAtIndex: [[o_userSelections objectForKey: @"encapFormat"] intValue]] objectAtIndex:0] |
|---|
| | 1574 | UTF8String], |
|---|
| | 1575 | [[o_userSelections objectForKey: @"stmgDest"] UTF8String], |
|---|
| | 1576 | [[[o_strmgMthds objectAtIndex: [[o_userSelections objectForKey: @"stmgMhd"] intValue]] objectAtIndex:0] UTF8String]]; |
|---|
| | 1577 | } |
|---|