From 3a33bcaac9f6fc87cedbd90329fb4d9e18e83b46 Mon Sep 17 00:00:00 2001 From: Rob Barker Date: Thu, 29 May 2014 12:20:53 -0300 Subject: [PATCH] libdvbv5: Find other TS in NIT pointer fix dvb_scan_add_entry() is modified to return the pointer to the newly created entry (the last in the list), so the add_update_nit_ functions now modify the correct element, instead of the penultimate one. This fixes the finding of other TS in NIT scan feature. Signed-off-by: Rob Barker Signed-off-by: Mauro Carvalho Chehab --- lib/libdvbv5/dvb-scan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libdvbv5/dvb-scan.c b/lib/libdvbv5/dvb-scan.c index 297ac59..9a7997b 100644 --- a/lib/libdvbv5/dvb-scan.c +++ b/lib/libdvbv5/dvb-scan.c @@ -741,7 +741,7 @@ struct dvb_entry *dvb_scan_add_entry(struct dvb_v5_fe_parms *parms, n, freq); entry->next = new_entry; new_entry->next = NULL; - return entry; + return new_entry; } } -- 2.7.4