[vlc-commits] macosx: Convert and save: Use correct port

David Fuhrmann git at videolan.org
Thu Aug 23 19:17:18 CEST 2018


vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Thu Aug 23 19:09:50 2018 +0200| [4da26c6c9c8137d9d84ae66d64775760da4d1674] | committer: David Fuhrmann

macosx: Convert and save: Use correct port

Port must be part of MRL, not as a separate field (which does not
exist).

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4da26c6c9c8137d9d84ae66d64775760da4d1674
---

 modules/gui/macosx/VLCConvertAndSaveWindowController.m | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/modules/gui/macosx/VLCConvertAndSaveWindowController.m b/modules/gui/macosx/VLCConvertAndSaveWindowController.m
index 0fff3fe1a2..5b545622e3 100644
--- a/modules/gui/macosx/VLCConvertAndSaveWindowController.m
+++ b/modules/gui/macosx/VLCConvertAndSaveWindowController.m
@@ -968,15 +968,17 @@
                                                                            withString:@"\\\""];
         [composedOptions appendFormat:@",access=file{no-overwrite},dst=\"%@\"}", _outputDestination];
     } else {
+        NSString *destination = [NSString stringWithFormat:@"\"%@:%@\"", _outputDestination, [_streamPortField stringValue]];
+
         /* streaming */
         if ([[[_streamTypePopup selectedItem] title] isEqualToString:@"RTP"])
             [composedOptions appendFormat:@":rtp{mux=ts,dst=%@,port=%@", _outputDestination, [_streamPortField stringValue]];
         else if ([[[_streamTypePopup selectedItem] title] isEqualToString:@"UDP"])
-            [composedOptions appendFormat:@":standard{mux=ts,dst=%@,port=%@,access=udp", _outputDestination, [_streamPortField stringValue]];
+            [composedOptions appendFormat:@":standard{mux=ts,dst=%@,access=udp", destination];
         else if ([[[_streamTypePopup selectedItem] title] isEqualToString:@"MMSH"])
-            [composedOptions appendFormat:@":standard{mux=asfh,dst=%@,port=%@,access=mmsh", _outputDestination, [_streamPortField stringValue]];
+            [composedOptions appendFormat:@":standard{mux=asfh,dst=%@,access=mmsh", destination];
         else
-            [composedOptions appendFormat:@":standard{mux=%@,dst=%@,port=%@,access=http", [self.currentProfile firstObject], _outputDestination, [_streamPortField stringValue]];
+            [composedOptions appendFormat:@":standard{mux=%@,dst=%@,access=http", [self.currentProfile firstObject], destination];
 
         if ([_streamSAPCheckbox state])
             [composedOptions appendFormat:@",sap,name=\"%@\"", [_streamChannelField stringValue]];



More information about the vlc-commits mailing list