Detach 3A thread on creation
authorJussi Saavalainen <jussi.saavalainen@ixonos.com>
Wed, 24 Apr 2013 12:36:07 +0000 (15:36 +0300)
committerTelle-Tiia Pitkänen <telle-tiia.pitkanen@ixonos.com>
Thu, 25 Apr 2013 08:14:19 +0000 (11:14 +0300)
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

index 3809448..1a4ccc2 100644 (file)
@@ -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;
     }