msm: camera: Do stream deletion properly.
when mediaserver crashes we are getting error that __msm_destroy_session_streams: Error: Destroyed list is not empty. The order of stream_id for normal camera close is 1,2,3,4,0.When mediaserver crashes stream id order is 0,1,2,3,4.stream id 4 is coming in the last and when pvdev->opened is 0 we are not deleting the stream.Added stream_delete when pvdev->opened is 0. Change-Id: I22eaa8bd485e19605b9b69e86644f68ce209e808 Signed-off-by: Manish Poddar <mpoddar@codeaurora.org>
This commit is contained in:
parent
e4d3720461
commit
a1385afa7b
1 changed files with 1 additions and 1 deletions
|
@ -680,7 +680,7 @@ static int camera_v4l2_close(struct file *filep)
|
||||||
msm_post_event(&event, MSM_POST_EVT_TIMEOUT);
|
msm_post_event(&event, MSM_POST_EVT_TIMEOUT);
|
||||||
|
|
||||||
msm_delete_command_ack_q(pvdev->vdev->num, 0);
|
msm_delete_command_ack_q(pvdev->vdev->num, 0);
|
||||||
|
msm_delete_stream(pvdev->vdev->num, sp->stream_id);
|
||||||
mutex_unlock(&session->close_lock);
|
mutex_unlock(&session->close_lock);
|
||||||
/* This should take care of both normal close
|
/* This should take care of both normal close
|
||||||
* and application crashes */
|
* and application crashes */
|
||||||
|
|
Loading…
Add table
Reference in a new issue