workaround: Update preview callback flag 14/314614/1 accepted/tizen/unified/20240717.060612 accepted/tizen/unified/dev/20240718.035938 accepted/tizen/unified/toolchain/20240812.133221 accepted/tizen/unified/x/20240718.022901 accepted/tizen/unified/x/asan/20240813.231601
authorJeongmo Yang <jm80.yang@samsung.com>
Tue, 16 Jul 2024 07:57:11 +0000 (16:57 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Tue, 16 Jul 2024 07:57:11 +0000 (16:57 +0900)
- The preview callback flag should be updated
  when preview callback is set by latest mmsvc-camera module,
  but it could be missed with old mmsvc-camera module.
- Update preview callback flag when preview callback is set, but flag is not set.
- This is workaround patch and it will be removed after mmsvc-camera module is updated.

[Version] 1.1.2
[Issue Type] Compatibility

Change-Id: I810e6909cb5f0cb5ec431e2172556e58b7eca3b5
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
packaging/libmm-camcorder.spec
src/mm_camcorder_gstcommon.c

index 6175e8a2dfe06c1326ae77eca7d185affe6b42a9..5d8714fc38f03f742bedcbea7ced44b32a8f2757 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       libmm-camcorder
 Summary:    Camera and recorder library
-Version:    1.1.1
+Version:    1.1.2
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0
index bd016578694fd9922e7cac53b7eed757530dcfa8..2469dfbd6040cf379a25080d10ecd30b18b30b8f 100644 (file)
@@ -2256,6 +2256,14 @@ static GstPadProbeReturn __mmcamcorder_video_dataprobe_preview_common(mmf_camcor
 
        MMCAM_LOG_DEBUG("flag [current:0x%08x,mask:0x%08x]", flag_current, flag_mask);
 
+       /* workaround: it will be removed after mmsvc-camera is updated. */
+       _MMCAMCORDER_LOCK_VSTREAM_CALLBACK(hcamcorder);
+       if (hcamcorder->vstream_cb && flag_current == 0) {
+               MMCAM_LOG_DEBUG("vstream_cb, but NULL flag, update it NORMAL");
+               flag_current = MM_CAMCORDER_VIDEO_STREAM_CALLBACK_FLAG_NORMAL;
+       }
+       _MMCAMCORDER_UNLOCK_VSTREAM_CALLBACK(hcamcorder);
+
        if (!(flag_current & flag_mask))
                return GST_PAD_PROBE_OK;