Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- *** /tmp/ediff1898nKQ 2013-02-03 17:32:07.482811760 -0200
- --- /tmp/ediff18980UW 2013-02-03 17:32:07.489478419 -0200
- ***************
- *** 533,538 ****
- --- 533,553 ----
- {
- tvhlog(LOG_DEBUG, "dvb", "\"%s\" tuning to \"%s\" (%s)", tda->tda_rootpath, buf, reason);
- r = ioctl(tda->tda_fe_fd, FE_SET_FRONTEND, p);
- + if(r == -1) // failed
- + {
- + struct dtv_property _dvbs_cmdargs[] = {
- + { .cmd = DTV_FREQUENCY, .u.data = p->frequency },
- + { .cmd = DTV_INVERSION, .u.data = INVERSION_AUTO },
- + { .cmd = DTV_TUNE },
- + };
- +
- + struct dtv_properties _dvbs_cmdseq = {
- + .num = sizeof(_dvbs_cmdargs)/sizeof(_dvbs_cmdargs[0]),
- + .props = _dvbs_cmdargs
- + };
- +
- + r = ioctl(tda->tda_fe_fd, FE_SET_PROPERTY, &_dvbs_cmdseq);
- + }
- }
- if(r != 0) {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement