]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
satip server: fix the problem introduced in 'satip server: pass cmd to rtsp_start...
authorJaroslav Kysela <perex@perex.cz>
Wed, 28 Jun 2017 06:13:26 +0000 (08:13 +0200)
committerJaroslav Kysela <perex@perex.cz>
Thu, 6 Jul 2017 13:37:50 +0000 (15:37 +0200)
src/satip/rtsp.c

index 2cafd4fc5635aac119d341eb74d0a487e61d95ef..50f1044fffc77f950e076de53e31b5e83b5ff45f 100644 (file)
@@ -883,10 +883,10 @@ rtsp_parse_cmd
   http_arg_t *arg;
 
   switch (cmd) {
-  case -1: caller = "DESCRIBE"; break;
-  case  0: caller = "PLAY"; break;
-  case  1: caller = "SETUP"; break;
-  default: caller = NULL; break;
+  case RTSP_CMD_DESCRIBE: caller = "DESCRIBE"; break;
+  case RTSP_CMD_PLAY:     caller = "PLAY";     break;
+  case RTSP_CMD_SETUP:    caller = "SETUP";    break;
+  default:                caller = NULL;       break;
   }
 
   *rrs = NULL;
@@ -1298,7 +1298,7 @@ rtsp_process_describe(http_connection_t *hc)
       pthread_mutex_unlock(&rtsp_lock);
       goto error;
     }
-    r = rtsp_parse_cmd(hc, stream, -1, &rs, &valid, &oldstate);
+    r = rtsp_parse_cmd(hc, stream, RTSP_CMD_DESCRIBE, &rs, &valid, &oldstate);
     if (r) {
       pthread_mutex_unlock(&rtsp_lock);
       goto error;