/* In case of session backward compatibility for audio-io, mm-player, mm-camcorder, we mark a specific flag here.
When invoking focus state changed callback for acquiring, state of the node will not be updated rather updated
when the next request to acquire. */
- if (!strncmp("audio-io acquire focus", node->ext_info[direction], strlen(node->ext_info[direction])) ||
- !strncmp("mm-player acquire focus", node->ext_info[direction], strlen(node->ext_info[direction])) ||
- !strncmp("mm-camcorder acquire focus", node->ext_info[direction], strlen(node->ext_info[direction]))) {
- debug_msg("this node needs reacquisition with focus released state\n");
+ if (!strncmp("audio-io acquire focus", node->ext_info[direction], MM_SOUND_NAME_NUM) ||
+ !strncmp("mm-player acquire focus", node->ext_info[direction], MM_SOUND_NAME_NUM) ||
+ !strncmp("mm-camcorder acquire focus", node->ext_info[direction], MM_SOUND_NAME_NUM)) {
+ debug_msg("this node[pid:%d, handle_id:%d] needs reacquisition with focus released state\n", node->pid, node->handle_id);
node->reacquisition_with_released_state = true;
}
}