From 14f72e1442a458915ae038073a9ae25140ad2849 Mon Sep 17 00:00:00 2001 From: "Nektarios K. Papadopoulos" Date: Tue, 3 Oct 2006 10:26:31 +0000 Subject: [PATCH] Always retrieve the actual port used by the library. Even if specified the value might be invalid (e.g. < 49152) or unavailable. git-svn-id: https://pupnp.svn.sourceforge.net/svnroot/pupnp/trunk@88 119443c7-1b9e-41f8-b6fc-b9c35fce742c --- upnp/sample/tvdevice/upnp_tv_device.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/upnp/sample/tvdevice/upnp_tv_device.c b/upnp/sample/tvdevice/upnp_tv_device.c index cec09f1..ba29f69 100644 --- a/upnp/sample/tvdevice/upnp_tv_device.c +++ b/upnp/sample/tvdevice/upnp_tv_device.c @@ -1974,9 +1974,7 @@ TvDeviceStart( char *ip_address, ip_address = UpnpGetServerIpAddress( ); } - if( port == 0 ) { port = UpnpGetServerPort( ); - } SampleUtil_Print( "UPnP Initialized\n \t ipaddress= %s port = %d\n", ip_address, port );