From bbf64f18f0e6d8b7584c13f859d697f9012b8eeb Mon Sep 17 00:00:00 2001 From: Jussi Saavalainen Date: Wed, 24 Apr 2013 15:36:07 +0300 Subject: [PATCH] Detach 3A thread on creation Since the 3A thread is cancelled instead of joined, it needs to be detached so the resources (chiefly stack space) get freed when it goes. Change-Id: I44f9eef08e66580522dd8080da365821e11b64ae --- gst-libs/atomisphal/mfld_cam.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst-libs/atomisphal/mfld_cam.c b/gst-libs/atomisphal/mfld_cam.c index 3809448..1a4ccc2 100644 --- a/gst-libs/atomisphal/mfld_cam.c +++ b/gst-libs/atomisphal/mfld_cam.c @@ -1528,6 +1528,7 @@ mfldcam_3a_start (void) mfld_driver.g_3a_started = 0; cam_driver_dbg ("Create thread failed %s\n", __func__);; } + pthread_detach(mfld_driver.thread); /* always cancelled */ } else if(mfld_driver.thread_paused) { mfld_driver.thread_paused = 0; } -- 2.7.4