[vlc-devel] commit: Qt4: set correct default port depending on the protocol ( Rémi Denis-Courmont )
git version control
git at videolan.org
Thu Nov 26 18:20:35 CET 2009
vlc | branch: 1.0-bugfix | Rémi Denis-Courmont <remi at remlab.net> | Thu Nov 26 19:20:21 2009 +0200| [585ccf6efaa547e09b7c56de875a3dbc2a6a1f49] | committer: Rémi Denis-Courmont
Qt4: set correct default port depending on the protocol
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=585ccf6efaa547e09b7c56de875a3dbc2a6a1f49
---
modules/gui/qt4/components/open_panels.cpp | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/modules/gui/qt4/components/open_panels.cpp b/modules/gui/qt4/components/open_panels.cpp
index 5a39f48..5f5778b 100644
--- a/modules/gui/qt4/components/open_panels.cpp
+++ b/modules/gui/qt4/components/open_panels.cpp
@@ -530,6 +530,17 @@ void NetOpenPanel::updateProtocol( int idx_proto ) {
ui.portSpin->setEnabled( idx_proto == UDP_PROTO ||
idx_proto == RTP_PROTO );
+ switch( idx_proto )
+ {
+ case RTP_PROTO:
+ ui.portSpin->setValue(5004);
+ break;
+ case UDP_PROTO:
+ ui.portSpin->setValue(1234);
+ break;
+ default:
+ ui.portSpin->setValue(0);
+ }
if( idx_proto == NO_PROTO ) return;
More information about the vlc-devel
mailing list