From: Jeongmo Yang Date: Tue, 29 Nov 2016 07:42:00 +0000 (+0900) Subject: Bug fix - fast/slow motion recording failure X-Git-Tag: accepted/tizen/common/20161129.173629^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4e9ff9e5c5a930301b42cec54ea7a8041734fb79;p=platform%2Fcore%2Fmultimedia%2Flibmm-camcorder.git Bug fix - fast/slow motion recording failure GST_BUFFER_PTS is updated for fast/slow motion recording, but GST_BUFFER_DTS is not updated. It caused unexpected recording result and fixed it. [Version] 0.10.96 [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_20161125.1] Change-Id: I49fa621b34f8c7c5e2c1b82afaa20da0cd5a8582 Signed-off-by: Jeongmo Yang --- diff --git a/packaging/libmm-camcorder.spec b/packaging/libmm-camcorder.spec index be7dcd2..34ed6db 100644 --- a/packaging/libmm-camcorder.spec +++ b/packaging/libmm-camcorder.spec @@ -1,7 +1,7 @@ Name: libmm-camcorder Summary: Camera and recorder library -Version: 0.10.95 -Release: 1 +Version: 0.10.96 +Release: 0 Group: Multimedia/Libraries License: Apache-2.0 Source0: %{name}-%{version}.tar.gz diff --git a/src/mm_camcorder_videorec.c b/src/mm_camcorder_videorec.c index 5acb1ef..83f85da 100644 --- a/src/mm_camcorder_videorec.c +++ b/src/mm_camcorder_videorec.c @@ -105,6 +105,7 @@ static gboolean __mmcamcorder_video_stream_cb(GstElement *element, GstSample *sa } GST_BUFFER_PTS(buffer) = GST_BUFFER_PTS(buffer) - sc->info_video->base_video_ts; + GST_BUFFER_DTS(buffer) = GST_BUFFER_PTS(buffer); ret = gst_app_src_push_buffer((GstAppSrc *)sc->encode_element[_MMCAMCORDER_ENCSINK_SRC].gst, buffer); if (ret != GST_FLOW_OK && ret != GST_FLOW_FLUSHING) { @@ -1682,6 +1683,7 @@ static GstPadProbeReturn __mmcamcorder_video_dataprobe_audio_disable(GstPad *pad } GST_BUFFER_PTS(buffer) = b_time * (videoinfo->record_timestamp_ratio); + GST_BUFFER_DTS(buffer) = GST_BUFFER_PTS(buffer); } return GST_PAD_PROBE_OK;