- 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>
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
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;