]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
SAT>IP server: try to recover correctly for multiple PLAY commands, fixes #3750
authorJaroslav Kysela <perex@perex.cz>
Thu, 28 Apr 2016 07:35:57 +0000 (09:35 +0200)
committerJaroslav Kysela <perex@perex.cz>
Thu, 28 Apr 2016 07:39:41 +0000 (09:39 +0200)
src/satip/rtsp.c

index fc2d4d45f79ff1e775e81447891908550785dffa..07cc2c606f9b3d62cfd1e9b719b6fd05e180dd23 100644 (file)
@@ -967,7 +967,8 @@ rtsp_parse_cmd
     }
     *oldstate = rs->state;
     dmc = &rs->dmc;
-    if (rs->mux == NULL) goto end;
+    if (rs->mux == NULL)
+      *oldstate = rs->state = STATE_SETUP;
     if (!fe) {
       fe = rs->frontend;
       findex = rs->findex;
@@ -1346,7 +1347,7 @@ static int
 rtsp_process_play(http_connection_t *hc, int setup)
 {
   session_t *rs;
-  int errcode = HTTP_STATUS_BAD_REQUEST, valid = 0, oldstate = 0, i, stream;;
+  int errcode = HTTP_STATUS_BAD_REQUEST, valid = 0, oldstate = 0, i, stream;
   char buf[256], *u = tvh_strdupa(hc->hc_url);
   http_arg_list_t args;