From 3665074eab85c7da67772d11dc4e616eb900ec18 Mon Sep 17 00:00:00 2001 From: Calin Crisan Date: Wed, 20 Jul 2016 20:58:20 +0300 Subject: [PATCH] RTSP netams: the TCP option is now the first (and preferred) one --- motioneye/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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): -- 2.39.5