Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
rtsp: correct the timeout range (20-3600), warn user
- fix also small typo in linuxdvb rotor
  • Loading branch information
perexg committed Dec 13, 2014
1 parent 39d985b commit b0b48bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/input/mpegts/linuxdvb/linuxdvb_rotor.c
Expand Up @@ -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))
Expand Down
4 changes: 3 additions & 1 deletion src/rtsp.c
Expand Up @@ -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) {
Expand Down

0 comments on commit b0b48bd

Please sign in to comment.