mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-11-03 01:33:35 +08:00
[mpp_cfg]: fix set ptr err.
The same poiner address may have different value in memory. So we need to update pointer config at each time. Issue is introduced by commit as followed. Change-Id: Ia15a0128d03b1a2624410b6f2a13effe3a03c47c Change-Id: Ia10fe1f3faff257d5276473cb7829ac1cb0f1795 Signed-off-by: xueman.ruan <xueman.ruan@rock-chips.com>
This commit is contained in:
@@ -166,13 +166,9 @@ static MPP_RET mpp_cfg_set_ptr(MppCfgInfoNode *info, void *cfg, void *val)
|
||||
{
|
||||
void **dst = CFG_TO_PTR_PTR(info, cfg);
|
||||
|
||||
if (dst[0] != val) {
|
||||
mpp_cfg_dbg_set("set ptr %-25s update %p -> %p\n", info->name, dst[0], val);
|
||||
dst[0] = val;
|
||||
CFG_TO_FLAG_PTR(info, cfg)[0] |= info->flag_value;
|
||||
} else {
|
||||
mpp_cfg_dbg_set("set ptr %-25s keep %p\n", info->name, dst[0]);
|
||||
}
|
||||
mpp_cfg_dbg_set("set ptr %-25s update %p -> %p\n", info->name, dst[0], val);
|
||||
dst[0] = val;
|
||||
CFG_TO_FLAG_PTR(info, cfg)[0] |= info->flag_value;
|
||||
|
||||
return MPP_OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user