Skip to contentSkip to conversation

v4l-utils: libdvbv5: Find other TS in NIT pointer fix

PATCH New Rob Barker 1 participant 1 message May 29, 2014 Media (V4L/DVB)

lore
Share & tools
lore

Rob Barker

author
#0 lore raw

PATCH 1/1 v4l-utils: 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.

---

lib/libdvbv5/dvb-scan.c +0 -0
index 297ac59..9a7997b 100644
@@ -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