- if(((mmf_camcorder_t *)camcorder)->sync_state_change) {
- __ta__("_mmcamcorder_unrealize",
- error = _mmcamcorder_unrealize(camcorder);
- );
- } else {
- /* After sending command, this function just return immediately. */
- error = _mmcamcorder_append_simple_command(camcorder, _MMCAMCORDER_CMD_UNREALIZE);
- }
+ _MMCAMCORDER_LOCK_ASM(camcorder);
+
+ traceBegin(TTRACE_TAG_CAMERA, "MMCAMCORDER:UNREALIZE");
+
+ error = _mmcamcorder_unrealize(camcorder);
+
+ traceEnd(TTRACE_TAG_CAMERA);
+
+ _MMCAMCORDER_UNLOCK_ASM(camcorder);