From 237131fab42af6c31d6279c4cafb4615e0822c4c Mon Sep 17 00:00:00 2001 From: TangoCash Date: Sun, 10 Dec 2017 20:07:17 +0100 Subject: [PATCH] gstreamer: increase seek accuracy Origin commit data ------------------ Branch: master Commit: https://github.com/neutrino-images/ni-libstb-hal/commit/398ed0c3de4b3f7d85fd888a9f9bbbdcfad5691d Author: TangoCash Date: 2017-12-10 (Sun, 10 Dec 2017) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- libarmbox/playback_gst.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libarmbox/playback_gst.cpp b/libarmbox/playback_gst.cpp index 0ef2c4f..97b80c5 100644 --- a/libarmbox/playback_gst.cpp +++ b/libarmbox/playback_gst.cpp @@ -896,7 +896,7 @@ bool cPlayback::SetPosition(int position, bool absolute) time_nanoseconds = position * 1000000.0; } - gst_element_seek(m_gst_playbin, 1.0, GST_FORMAT_TIME, GST_SEEK_FLAG_FLUSH, GST_SEEK_TYPE_SET, time_nanoseconds, GST_SEEK_TYPE_NONE, GST_CLOCK_TIME_NONE); + gst_element_seek(m_gst_playbin, 1.0, GST_FORMAT_TIME, (GstSeekFlags)(GST_SEEK_FLAG_FLUSH | GST_SEEK_FLAG_ACCURATE), GST_SEEK_TYPE_SET, time_nanoseconds, GST_SEEK_TYPE_NONE, GST_CLOCK_TIME_NONE); } return true;