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

Commit a1385afa authored by Manish Poddar's avatar Manish Poddar Committed by David Keitel
Browse files

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: default avatarManish Poddar <mpoddar@codeaurora.org>
parent e4d37204
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -680,7 +680,7 @@ static int camera_v4l2_close(struct file *filep)
		msm_post_event(&event, MSM_POST_EVT_TIMEOUT);

		msm_delete_command_ack_q(pvdev->vdev->num, 0);

		msm_delete_stream(pvdev->vdev->num, sp->stream_id);
		mutex_unlock(&session->close_lock);
		/* This should take care of both normal close
		 * and application crashes */