Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b6cccdfd authored by Chandrakant I Viraktamath's avatar Chandrakant I Viraktamath
Browse files

msm: vidc: Fix mbpf calculation for active session



Fix macro block per frame calculation by not
considering sessions which have state greater
than or equal to MSM_VIDC_STOP_DONE.

Change-Id: Ie25e52e946386fcf226b0f9c073c1b022cf1ac0c
Signed-off-by: default avatarChandrakant I Viraktamath <civirakt@codeaurora.org>
parent c55e0884
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -5775,8 +5775,9 @@ static int msm_vidc_check_mbpf_supported(struct msm_vidc_inst *inst)


	mutex_lock(&core->lock);
	mutex_lock(&core->lock);
	list_for_each_entry(temp, &core->instances, list) {
	list_for_each_entry(temp, &core->instances, list) {
		/* ignore invalid session */
		/* ignore invalid and completed session */
		if (temp->state == MSM_VIDC_CORE_INVALID)
		if (temp->state == MSM_VIDC_CORE_INVALID ||
			temp->state >= MSM_VIDC_STOP_DONE)
			continue;
			continue;
		/* ignore thumbnail session */
		/* ignore thumbnail session */
		if (is_thumbnail_session(temp))
		if (is_thumbnail_session(temp))