This is an automatic generated email to let you know that the following patch were queued at the http://git.linuxtv.org/v4l-utils.git tree:
Subject: dvb-file: Fix bandwidth handling at online write function Author: Mauro Carvalho Chehab <[email protected]> Date: Wed Jun 4 14:14:55 2014 -0300 The conversion from bandwidth in Hz to bandwidth with the legacy oneline files is wrong. It was always returning bandwidth auto, instead of writing the proper values on it. Fix it. Reported-by: Reynaldo H. Verdejo Pinochet <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]> lib/libdvbv5/dvb-file.c | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) --- http://git.linuxtv.org/v4l-utils.git?a=commitdiff;h=ed864022465cd2bc6b78285d4e50b7d25d1abe3b diff --git a/lib/libdvbv5/dvb-file.c b/lib/libdvbv5/dvb-file.c index 84ff725..41e2e38 100644 --- a/lib/libdvbv5/dvb-file.c +++ b/lib/libdvbv5/dvb-file.c @@ -380,12 +380,15 @@ int write_format_oneline(const char *fname, data = entry->props[j].u.data; if (table->prop == DTV_BANDWIDTH_HZ) { - if (data < ARRAY_SIZE(fe_bandwidth_name)) - data = fe_bandwidth_name[data]; - else + for (j = 0; j < ARRAY_SIZE(fe_bandwidth_name); j++) { + if (fe_bandwidth_name[j] == data) { + data = j; + break; + } + } + if (j == ARRAY_SIZE(fe_bandwidth_name)) data = BANDWIDTH_AUTO; } - if (data >= table->size) { sprintf(err_msg, "value not supported"); _______________________________________________ linuxtv-commits mailing list [email protected] http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits
