]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
satip server: fix the cherry pick error (cmd)
authorJaroslav Kysela <perex@perex.cz>
Thu, 6 Jul 2017 13:34:17 +0000 (15:34 +0200)
committerJaroslav Kysela <perex@perex.cz>
Thu, 6 Jul 2017 13:37:50 +0000 (15:37 +0200)
src/satip/rtsp.c

index 1fda0cb0fafd49440a2e908fedc9c2466c406d77..e08c626d373f5b634afa6f4a5c5d73e32f8ec162 100644 (file)
@@ -1428,7 +1428,7 @@ rtsp_process_play(http_connection_t *hc, int cmd)
   goto end;
 
 error:
-  if (rs && setup) {
+  if (rs && cmd == RTSP_CMD_SETUP) {
     rtsp_close_session(rs);
     rtsp_free_session(rs);
   }