]> 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:35:07 +0000 (22:35 +0100)
src/satip/rtsp.c

index 88cc3afefed47e22c554cbaeefdef0a4492fd2e3..3f0d70adf4ad2fc9911a0e751a0386625673eb0e 100644 (file)
@@ -1335,7 +1335,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) {