From: Jaroslav Kysela Date: Wed, 13 Sep 2017 12:05:03 +0000 (+0200) Subject: satip server: rtsp - fix playing session flag, issue #4499 X-Git-Tag: v4.2.4~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3fc99837e6f8954b25f4b2c2a85c3968d45b2a00;p=thirdparty%2Ftvheadend.git satip server: rtsp - fix playing session flag, issue #4499 --- diff --git a/src/satip/rtsp.c b/src/satip/rtsp.c index dfc697fff..882828449 100644 --- a/src/satip/rtsp.c +++ b/src/satip/rtsp.c @@ -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);