diff mbox

dvbv5-zap fix option lnb UNIVERSAL

Message ID 1564179.r2h1y4RF0H@jar7.dominio (mailing list archive)
State New, archived
Headers show

Commit Message

Jose Alberto Reguero May 29, 2014, 1:07 p.m. UTC
This patch fix the option lnb UNIVERSAL for dvbv5-zap. Without the patch, the option don't work.

Signed-off-by: Jose Alberto Reguero <jose.alberto.reguero@gmail.com>


--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/utils/dvb/dvbv5-zap.c b/utils/dvb/dvbv5-zap.c
index 14e8fd9..085bbf2 100644
--- a/utils/dvb/dvbv5-zap.c
+++ b/utils/dvb/dvbv5-zap.c
@@ -773,7 +773,7 @@  int main(int argc, char **argv)
        parms = dvb_fe_open(args.adapter, args.frontend, args.verbose, args.force_dvbv3);
        if (!parms)
                goto err;
-       if (lnb)
+       if (lnb >= 0)
                parms->lnb = dvb_sat_get_lnb(lnb);
        if (args.sat_number > 0)
                parms->sat_number = args.sat_number % 3;