]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
satip server: rtsp - fix playing session flag, issue #4499
authorJaroslav Kysela <perex@perex.cz>
Wed, 13 Sep 2017 12:05:03 +0000 (14:05 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 18 Sep 2017 13:15:00 +0000 (15:15 +0200)
src/satip/rtsp.c

index dfc697fffc1239e862d0615e738a12e3865b41d6..8828284498a01a52fdcccaf8b5b82e0730fb1ac1 100644 (file)
@@ -647,9 +647,10 @@ pids:
       mpegts_pid_add(&rs->pids, 0, MPS_WEIGHT_RAW);
     svc = (mpegts_service_t *)rs->subs->ths_raw_service;
     svc->s_update_pids(svc, &rs->pids);
-    rs->playing = 1;
+    rs->playing = cmd == RTSP_CMD_PLAY || rs->playing;
     rs->state = STATE_PLAY;
   } else if (cmd == RTSP_CMD_PLAY) {
+    rs->playing = 1;
     if (rs->mux == NULL)
       goto endclean;
     satip_rtp_allow_data(rs->rtp_handle);