diff --git a/src/v4l.c b/src/v4l.c index 1a48fed..ef3d451 100644 --- a/src/v4l.c +++ b/src/v4l.c @@ -173,7 +173,7 @@ static int v4l_service_start(service_t *t, unsigned int weight, int force_start) { v4l_adapter_t *va = t->s_v4l_adapter; - int frequency = t->s_v4l_frequency; + unsigned int frequency = t->s_v4l_frequency; struct v4l2_frequency vf; int result; v4l2_std_id std = 0xff; @@ -204,7 +204,7 @@ v4l_service_start(service_t *t, unsigned int weight, int force_start) vf.tuner = 0; vf.type = V4L2_TUNER_ANALOG_TV; - vf.frequency = (frequency * 16) / 1000000; + vf.frequency = (frequency * 16) / 1000; result = ioctl(fd, VIDIOC_S_FREQUENCY, &vf); if(result < 0) { tvhlog(LOG_ERR, "v4l",