From 77afaff3044ab005647d0fcd0b507a727fe5b78e Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Sun, 12 Nov 2017 08:57:41 +0100 Subject: [PATCH 1/2] Revert "return false in decoder have no time" This reverts commit 6f006f1ce9026cccddfe87a88fb3ebaa1f6a9e98. Origin commit data ------------------ Branch: master Commit: https://github.com/neutrino-images/ni-libstb-hal/commit/88d4c165ec336478305db09711033f4373262bfd Author: Jacek Jendrzej Date: 2017-11-12 (Sun, 12 Nov 2017) ------------------ This commit was generated by Migit --- libarmbox/playback_gst.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/libarmbox/playback_gst.cpp b/libarmbox/playback_gst.cpp index 0de0930..3435ff8 100644 --- a/libarmbox/playback_gst.cpp +++ b/libarmbox/playback_gst.cpp @@ -821,7 +821,6 @@ bool cPlayback::GetPosition(int &position, int &duration) if (!GST_CLOCK_TIME_IS_VALID(pts)) { lt_info( "%s - %d failed\n", __FUNCTION__, __LINE__); - return false; } } else @@ -829,7 +828,6 @@ bool cPlayback::GetPosition(int &position, int &duration) if(!gst_element_query_position(m_gst_playbin, fmt, &pts)) { lt_info( "%s - %d failed\n", __FUNCTION__, __LINE__); - return false; } } position = pts / 1000000.0; From c5edbead791bf15ac7f46728b8cedfbd75f6d9f1 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Sun, 12 Nov 2017 08:58:18 +0100 Subject: [PATCH 2/2] init mpegts Origin commit data ------------------ Branch: master Commit: https://github.com/neutrino-images/ni-libstb-hal/commit/0f958a7ef9ebd97ec79e15974e1ced8183552263 Author: Jacek Jendrzej Date: 2017-11-12 (Sun, 12 Nov 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, 2 insertions(+) diff --git a/libarmbox/playback_gst.cpp b/libarmbox/playback_gst.cpp index 3435ff8..b7a6548 100644 --- a/libarmbox/playback_gst.cpp +++ b/libarmbox/playback_gst.cpp @@ -411,6 +411,8 @@ cPlayback::cPlayback(int num) gst_version (&major, &minor, µ, &nano); + gst_mpegts_initialize(); + if (nano == 1) nano_str = "(CVS)"; else if (nano == 2)