Commit 6717f896 authored by Gus Grubba's avatar Gus Grubba

If using RTSP and no port is defined, make sure to set default RTSP port (554)

parent 84a6c9d9
......@@ -189,6 +189,10 @@ VideoReceiver::_timeout()
// attempting a connection on this timer. Once a connection is
// found to be working, only then we actually start the stream.
QUrl url(_uri);
//-- If RTSP and no port is defined, set default RTSP port (554)
if(_uri.contains("rtsp://") && url.port() <= 0) {
url.setPort(554);
}
_socket = new QTcpSocket;
QNetworkProxy tempProxy;
tempProxy.setType(QNetworkProxy::DefaultProxy);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment