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 <robert.bar...@redembedded.com>
---
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;
                }
        }

--
Rob Barker
Red Embedded

This E-mail and any attachments hereto are strictly confidential and intended 
solely for the addressee. If you are not the intended addressee please notify 
the sender by return and delete the message.

You must not disclose, forward or copy this E-mail or attachments to any third 
party without the prior consent of the sender.

Red Embedded Consulting, Company Number 06688270 Registered in England: The 
Waterfront, Salts Mill Rd, Saltaire, BD17 7EZ
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to