msm: vidc: Reset stop_called state when START is called

The driver needs to reset the stop_called field once START called.
Otherwise in START, STOP, START, STOP sequences the secondary STOP will
be treated as a duplicate STOP and ignored.

Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org>
This commit is contained in:
Deva Ramasubramanian 2013-04-11 21:01:29 -07:00 committed by Iliyan Malchev
parent 6b052a80c0
commit 11c58412d7

View file

@ -1596,6 +1596,8 @@ static u32 vid_dec_start_stop(struct video_client_ctx *client_ctx, u32 start)
return false;
}
}
client_ctx->stop_called = false;
} else {
DBG("%s(): Calling vcd_stop()", __func__);
mutex_lock(&vid_dec_device_p->lock);