Fix invalid behaviour of time limit recording with fast motion setting 43/119043/1
authorJeongmo Yang <jm80.yang@samsung.com>
Tue, 14 Mar 2017 01:02:05 +0000 (10:02 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Wed, 15 Mar 2017 08:25:48 +0000 (17:25 +0900)
[Version] 0.10.112
[Profile] Common
[Issue Type] Bug fix
[Dependency module] N/A
[Test] [M(T) - Boot=(OK), sdb=(OK), Home=(OK), Touch=(OK), Version=tizen-3.0-mobile_20170302.1]

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

index bbfba22..3ce7edf 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-camcorder
 Summary:    Camera and recorder library
-Version:    0.10.111
+Version:    0.10.112
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0
index 644a610..e80d0e2 100644 (file)
@@ -557,7 +557,7 @@ int _mmcamcorder_video_command(MMHandleType handle, int command)
                        if (imax_time <= 0)
                                info->max_time = 0; /* do not check */
                        else
-                               info->max_time = ((guint64)imax_time) * 1000; /* to millisecond */
+                               info->max_time = (guint64)((double)imax_time * (double)1000 * motion_rate); /* to millisecond */
 
                        dir_name = g_path_get_dirname(temp_filename);
                        if (dir_name) {
@@ -1579,8 +1579,8 @@ static GstPadProbeReturn __mmcamcorder_video_dataprobe_audio_disable(GstPad *pad
 
        /* check max time */
        if (videoinfo->max_time > 0 && rec_pipe_time > videoinfo->max_time) {
-               _mmcam_dbg_warn("Current time : [%" G_GUINT64_FORMAT "], Maximum time : [%" G_GUINT64_FORMAT "]", \
-                       rec_pipe_time, videoinfo->max_time);
+               _mmcam_dbg_warn("Time current [%" G_GUINT64_FORMAT "], Max [%" G_GUINT64_FORMAT "], motion rate [%lf]", \
+                       rec_pipe_time, videoinfo->max_time, videoinfo->record_motion_rate);
 
                if (!sc->isMaxtimePausing) {
                        MMCAMCORDER_G_OBJECT_SET(sc->encode_element[_MMCAMCORDER_ENCSINK_ENCBIN].gst, "block", TRUE);
@@ -1697,8 +1697,8 @@ static GstPadProbeReturn __mmcamcorder_audioque_dataprobe(GstPad *pad, GstPadPro
        }
 
        if (videoinfo->max_time > 0 && rec_pipe_time > videoinfo->max_time) {
-               _mmcam_dbg_warn("Current time : [%" G_GUINT64_FORMAT "], Maximum time : [%" G_GUINT64_FORMAT "]", \
-                       rec_pipe_time, videoinfo->max_time);
+               _mmcam_dbg_warn("Time current [%" G_GUINT64_FORMAT "], Max [%" G_GUINT64_FORMAT "], motion rate [%lf]", \
+                       rec_pipe_time, videoinfo->max_time, videoinfo->record_motion_rate);
 
                if (!sc->isMaxtimePausing) {
                        MMCAMCORDER_G_OBJECT_SET(sc->encode_element[_MMCAMCORDER_ENCSINK_ENCBIN].gst, "block", TRUE);