From: Jeongmo Yang Date: Tue, 15 Nov 2016 11:21:49 +0000 (+0900) Subject: encodebin - Fix video recording resume failure X-Git-Tag: accepted/tizen/common/20161122.192953~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c554d83efddfd94512db7fff9d0311924d603928;p=platform%2Fupstream%2Fgst-plugins-tizen.git encodebin - Fix video recording resume failure Since GStreamer 1.0, GST_BUFFER_DTS is used with GST_BUFFER_PTS(GST_BUFFER_TIMESTAMP), but, GST_BUFFER_DTS is not updated in encodebin. It causes the failure on muxer when resume recording. [Version] 1.0.0-29 [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_20161114.3] Change-Id: Ia58f53a7215162d739845d5368275c77595a67c4 Signed-off-by: Jeongmo Yang --- diff --git a/encodebin/src/gstencodebin.c b/encodebin/src/gstencodebin.c index 77050f3..84a359d 100644 --- a/encodebin/src/gstencodebin.c +++ b/encodebin/src/gstencodebin.c @@ -2836,7 +2836,8 @@ gst_encode_bin_video_probe(GstPad *pad, GstPadProbeInfo *info, GstEncodeBin *enc } //Adjusting timestamp of video source - GST_BUFFER_TIMESTAMP(gst_pad_probe_info_get_buffer(info)) -= encodebin->total_offset_time; + GST_BUFFER_PTS(gst_pad_probe_info_get_buffer(info)) -= encodebin->total_offset_time; + GST_BUFFER_DTS(gst_pad_probe_info_get_buffer(info)) = GST_BUFFER_PTS(gst_pad_probe_info_get_buffer(info)); return GST_PAD_PROBE_OK; } @@ -2850,7 +2851,9 @@ gst_encode_bin_video_probe_hs(GstPad *pad, GstPadProbeInfo *info, GstEncodeBin * return GST_PAD_PROBE_OK; } - GST_BUFFER_TIMESTAMP(gst_pad_probe_info_get_buffer(info)) *= encodebin->multiple; + GST_BUFFER_PTS(gst_pad_probe_info_get_buffer(info)) *= encodebin->multiple; + GST_BUFFER_DTS(gst_pad_probe_info_get_buffer(info)) = GST_BUFFER_PTS(gst_pad_probe_info_get_buffer(info)); + return GST_PAD_PROBE_OK; } @@ -2864,7 +2867,8 @@ gst_encode_bin_audio_probe(GstPad *pad, GstPadProbeInfo *info, GstEncodeBin *enc } //Adjusting timestamp of video source - GST_BUFFER_TIMESTAMP(gst_pad_probe_info_get_buffer(info)) -= encodebin->total_offset_time; + GST_BUFFER_PTS(gst_pad_probe_info_get_buffer(info)) -= encodebin->total_offset_time; + GST_BUFFER_DTS(gst_pad_probe_info_get_buffer(info)) = GST_BUFFER_PTS(gst_pad_probe_info_get_buffer(info)); return GST_PAD_PROBE_OK; } diff --git a/packaging/gst-plugins-tizen.spec b/packaging/gst-plugins-tizen.spec index dfa3ba5..8504c6d 100755 --- a/packaging/gst-plugins-tizen.spec +++ b/packaging/gst-plugins-tizen.spec @@ -5,7 +5,7 @@ Name: gst-plugins-tizen Version: 1.0.0 Summary: GStreamer tizen plugins (common) -Release: 28 +Release: 29 Group: Multimedia/Framework Url: http://gstreamer.freedesktop.org/ License: LGPL-2.1+