Commit c02272f9 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] siano: fix start of statistics

It seems that the first u32 after the header for some stats are used by
something not documented.
The stats struct starts after it.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent d42f1cb2
......@@ -724,7 +724,8 @@ static int smsdvb_onresponse(void *context, struct smscore_buffer_t *cb)
smsdvb_update_isdbt_stats(client, p);
break;
default:
smsdvb_update_dvb_stats(client, p);
/* Skip SmsMsgStatisticsInfo_ST:RequestResult field */
smsdvb_update_dvb_stats(client, p + sizeof(u32));
}
is_status_update = true;
......@@ -732,7 +733,8 @@ static int smsdvb_onresponse(void *context, struct smscore_buffer_t *cb)
/* Only for ISDB-T */
case MSG_SMS_GET_STATISTICS_EX_RES:
smsdvb_update_isdbt_stats_ex(client, p);
/* Skip SmsMsgStatisticsInfo_ST:RequestResult field? */
smsdvb_update_isdbt_stats_ex(client, p + sizeof(u32));
is_status_update = true;
break;
default:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment