]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
rtsp: correct the timeout range (20-3600), warn user
authorJaroslav Kysela <perex@perex.cz>
Sat, 13 Dec 2014 17:51:12 +0000 (18:51 +0100)
committerJaroslav Kysela <perex@perex.cz>
Sat, 13 Dec 2014 17:51:57 +0000 (18:51 +0100)
- fix also small typo in linuxdvb rotor

src/input/mpegts/linuxdvb/linuxdvb_rotor.c
src/rtsp.c

index a3def4bf216ef183dc52664374e378820453993b..ae42695472043966152d151dfb9a38320f159dbb 100644 (file)
@@ -274,7 +274,7 @@ linuxdvb_rotor_usals_tune
   tvhtrace("diseqc", "rotor USALS site lat %0.4f%c site lon %0.4f%c sat lon %0.1f%c zero %0.1f%c",
            fabs(lr->lr_site_lat), (lr->lr_site_lat > 0.0) ? 'N' : 'S',
            fabs(lr->lr_site_lon), (lr->lr_site_lon > 0.0) ? 'E' : 'W',
-           fabs(lr->lr_sat_lon),  (lr->lr_sat_lon > 0.0)  ? 'E' : 'w',
+           fabs(lr->lr_sat_lon),  (lr->lr_sat_lon > 0.0)  ? 'E' : 'W',
            fabs(lr->lr_zero_lon), (lr->lr_zero_lon > 0.0) ? 'E' : 'W');
  
   if (linuxdvb_rotor_check_orbital_pos(lm, ls))
index d7602630227afb32adabe1cdb7b22c5db7523a05..54ec03861d508a79f87734545eab6956fe31bfc7 100644 (file)
@@ -110,8 +110,10 @@ rtsp_setup_decode( http_client_t *hc, int satip )
   for (i = 1; i < n; i++) {
     if (strncasecmp(argv[i], "timeout=", 8) == 0) {
       hc->hc_rtp_timeout = atoi(argv[i] + 8);
-      if (hc->hc_rtp_timeout <= 20 || hc->hc_rtp_timeout > 3600)
+      if (hc->hc_rtp_timeout < 20 || hc->hc_rtp_timeout > 3600) {
+        tvhwarn("rtsp", "timeout value out of range 20-3600 (%i)", hc->hc_rtp_timeout);
         return -EIO;
+      }
     }
   }
   if (satip) {