linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] v4l-utils: libdvbv5: Find other TS in NIT pointer fix
@ 2014-05-29 15:20 Rob Barker
  0 siblings, 0 replies; only message in thread
From: Rob Barker @ 2014-05-29 15:20 UTC (permalink / raw)
  To: linux-media

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.barker@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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2014-05-29 15:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-29 15:20 [PATCH] v4l-utils: libdvbv5: Find other TS in NIT pointer fix Rob Barker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).