From: Jeongmo Yang Date: Tue, 14 Mar 2017 01:02:05 +0000 (+0900) Subject: Fix invalid behaviour of time limit recording with fast motion setting X-Git-Tag: submit/tizen/20170328.103759~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=df4a897209c55acaf4af610e6ad680ea1aaa5cd1;p=platform%2Fcore%2Fmultimedia%2Flibmm-camcorder.git Fix invalid behaviour of time limit recording with fast motion setting [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 --- diff --git a/packaging/libmm-camcorder.spec b/packaging/libmm-camcorder.spec index bbfba22..3ce7edf 100644 --- a/packaging/libmm-camcorder.spec +++ b/packaging/libmm-camcorder.spec @@ -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 diff --git a/src/mm_camcorder_videorec.c b/src/mm_camcorder_videorec.c index 644a610..e80d0e2 100644 --- a/src/mm_camcorder_videorec.c +++ b/src/mm_camcorder_videorec.c @@ -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);