Index: trunk/BNC/bncnetqueryrtp.cpp
===================================================================
--- trunk/BNC/bncnetqueryrtp.cpp	(revision 1527)
+++ trunk/BNC/bncnetqueryrtp.cpp	(revision 1528)
@@ -86,6 +86,6 @@
   // Default scheme
   // --------------
-  QUrl urlLoc(url);
-  urlLoc.setScheme("rtsp");
+  _url = url;
+  _url.setScheme("rtsp");
 
   // Connect the Socket
@@ -96,5 +96,5 @@
  
   if ( proxyHost.isEmpty() ) {
-    _socket->connectToHost(urlLoc.host(), urlLoc.port());
+    _socket->connectToHost(_url.host(), _url.port());
   }
   else {
@@ -105,6 +105,6 @@
   // --------------
   if (_socket->waitForConnected(timeOut)) {
-    QString uName = QUrl::fromPercentEncoding(urlLoc.userName().toAscii());
-    QString passW = QUrl::fromPercentEncoding(urlLoc.password().toAscii());
+    QString uName = QUrl::fromPercentEncoding(_url.userName().toAscii());
+    QString passW = QUrl::fromPercentEncoding(_url.password().toAscii());
     QByteArray userAndPwd;
     
@@ -123,5 +123,5 @@
 
     QByteArray reqStr;
-    reqStr = "SETUP " + urlLoc.toEncoded() + " RTSP/1.0\r\n"
+    reqStr = "SETUP " + _url.toEncoded() + " RTSP/1.0\r\n"
            + "CSeq: 1\r\n"
            + "Ntrip-Version: Ntrip/2.0\r\n"
@@ -178,5 +178,5 @@
           }
 
-          reqStr = "PLAY " + urlLoc.toEncoded() + " RTSP/1.0\r\n"
+          reqStr = "PLAY " + _url.toEncoded() + " RTSP/1.0\r\n"
                  + "CSeq: 2\r\n"
                  + "Session: " + session + "\r\n"
@@ -192,6 +192,6 @@
               while (!line.isEmpty()) {
                 if (line.indexOf("200 OK") != -1) {
-                  emit newMessage(urlLoc.host().toAscii() + 
-                                  urlLoc.path().toAscii() + 
+                  emit newMessage(_url.host().toAscii() + 
+                                  _url.path().toAscii() + 
                                   ": UDP connection established", true);
                   return;
