From: Calin Crisan Date: Wed, 20 Jul 2016 17:58:20 +0000 (+0300) Subject: RTSP netams: the TCP option is now the first (and preferred) one X-Git-Url: http://www.vanbest.org/gitweb/?a=commitdiff_plain;h=3665074eab85c7da67772d11dc4e616eb900ec18;p=motioneye-debian RTSP netams: the TCP option is now the first (and preferred) one --- diff --git a/motioneye/utils.py b/motioneye/utils.py index 36ffbb0..dd8af67 100644 --- a/motioneye/utils.py +++ b/motioneye/utils.py @@ -555,12 +555,12 @@ def test_rtsp_url(data, callback): else: identifier = '' - if 'udp' in rtsp_support: - cameras.append({'id': 'udp', 'name': '%sRTSP/UDP Camera' % identifier}) - if 'tcp' in rtsp_support: cameras.append({'id': 'tcp', 'name': '%sRTSP/TCP Camera' % identifier}) + if 'udp' in rtsp_support: + cameras.append({'id': 'udp', 'name': '%sRTSP/UDP Camera' % identifier}) + callback(cameras) def handle_error(e):