]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
satip server: don't close session on PLAY, fixes #4471
authorJaroslav Kysela <perex@perex.cz>
Thu, 6 Jul 2017 06:53:02 +0000 (08:53 +0200)
committerJaroslav Kysela <perex@perex.cz>
Thu, 6 Jul 2017 06:53:02 +0000 (08:53 +0200)
src/satip/rtsp.c

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