Hi,

attached patch fix using SAT_NUMBER value from channel file.

please apply

--
Maksym Veremeyenko


From fe0193f8115ad256acfd2be42f5fed0d465dff55 Mon Sep 17 00:00:00 2001
From: Maksym Veremeyenko <ve...@m1.tv>
Date: Thu, 23 Nov 2017 14:15:28 +0100
Subject: [PATCH 2/4] Override sat_number by value from channel file if it not
 specified

---
 utils/dvb/dvbv5-zap.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/utils/dvb/dvbv5-zap.c b/utils/dvb/dvbv5-zap.c
index 1b6dabd0..5567736d 100644
--- a/utils/dvb/dvbv5-zap.c
+++ b/utils/dvb/dvbv5-zap.c
@@ -227,6 +227,9 @@ static int parse(struct arguments *args,
                parms->lnb = dvb_sat_get_lnb(lnb);
        }
 
+       if (parms->sat_number < 0 && entry->sat_number >= 0)
+               parms->sat_number = entry->sat_number;
+
        if (entry->video_pid) {
                if (args->n_vpid < entry->video_pid_len)
                        *vpid = entry->video_pid[args->n_vpid];
-- 
2.13.6

Reply via email to