From 13c1510e039e9d161e7f41ce63eeede10a8b8720 Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Wed, 30 May 2012 12:21:40 -0300 Subject: [PATCH] libdvbv5: fix the DVB write routine Signed-off-by: Mauro Carvalho Chehab --- lib/include/dvb-fe.h | 4 ++++ lib/libdvbv5/dvb-file.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/include/dvb-fe.h b/lib/include/dvb-fe.h index fd07a02..46404fb 100644 --- a/lib/include/dvb-fe.h +++ b/lib/include/dvb-fe.h @@ -144,6 +144,10 @@ int dvb_fe_get_stats(struct dvb_v5_fe_parms *parms); int dvb_fe_get_event(struct dvb_v5_fe_parms *parms); +/* Ancillary functions */ + +const char * const *dvb_attr_names(int cmd); + /* Other functions, associated to SEC/LNB/DISEqC */ /* diff --git a/lib/libdvbv5/dvb-file.c b/lib/libdvbv5/dvb-file.c index 0b9ccda..5ab0d97 100644 --- a/lib/libdvbv5/dvb-file.c +++ b/lib/libdvbv5/dvb-file.c @@ -707,7 +707,7 @@ int write_dvb_file(const char *fname, struct dvb_file *dvb_file) fprintf(fp, "\tLNB = %s\n", entry->lnb); for (i = 0; i < entry->n_props; i++) { - const char * const *attr_name = dvb_v5_attr_names[entry->props[i].cmd]; + const char * const *attr_name = dvb_attr_names(entry->props[i].cmd); if (attr_name) { int j; -- 2.7.4