]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
SAT>IP server: handle rtsp_start() return code correctly
authorJaroslav Kysela <perex@perex.cz>
Sun, 29 Nov 2015 21:35:07 +0000 (22:35 +0100)
committerJaroslav Kysela <perex@perex.cz>
Sun, 29 Nov 2015 21:36:42 +0000 (22:36 +0100)
src/satip/rtsp.c

index 2f2ab1a102b8ba474da7d9884ca63e16320a8d8d..af4b1a37947d73ab4bc047abb83828cf98c2b8e5 100644 (file)
@@ -1301,7 +1301,7 @@ rtsp_process_play(http_connection_t *hc, int setup)
     }
   }
 
-  if ((errcode = rtsp_start(hc, rs, hc->hc_peer_ipstr, valid, setup, oldstate)) < 0)
+  if ((errcode = rtsp_start(hc, rs, hc->hc_peer_ipstr, valid, setup, oldstate)) != 0)
     goto error;
 
   if (setup) {