projects
/
platform
/
upstream
/
v4l-utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f266880
)
dvb-fe: Fix check for stats property
author
Mauro Carvalho Chehab
<mchehab@redhat.com>
Fri, 1 Mar 2013 13:39:29 +0000
(10:39 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Fri, 1 Mar 2013 13:42:39 +0000
(10:42 -0300)
Instead of [i], the tests were doing [2]. That broke DTV_STATUS
retrival.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
lib/libdvbv5/dvb-fe.c
patch
|
blob
|
history
diff --git
a/lib/libdvbv5/dvb-fe.c
b/lib/libdvbv5/dvb-fe.c
index
83aaed2
..
155b25a
100644
(file)
--- a/
lib/libdvbv5/dvb-fe.c
+++ b/
lib/libdvbv5/dvb-fe.c
@@
-758,7
+758,7
@@
struct dtv_stats *dvb_fe_retrieve_stats_layer(struct dvb_v5_fe_parms *parms,
for (i = 0; i < DTV_NUM_STATS_PROPS; i++) {
if (parms->stats.prop[i].cmd != cmd)
continue;
- if (layer >= parms->stats.prop[
2
].u.st.len)
+ if (layer >= parms->stats.prop[
i
].u.st.len)
return NULL;
return &parms->stats.prop[i].u.st.stat[layer];
}