From e42875662de7ba58e367830ace843f963e7fe1f3 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Sun, 12 Nov 2017 08:57:41 +0100 Subject: [PATCH] Revert "return false in decoder have no time" This reverts commit e2c368551fd2adfd5ee2c7a5218551ee5b4ad5a4. Origin commit data ------------------ Branch: master Commit: https://github.com/neutrino-images/ni-libstb-hal/commit/d275525164461a8c86df45305ab8b9fa5ea24bba 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 dacbd63..cb6c6d0 100644 --- a/libarmbox/playback_gst.cpp +++ b/libarmbox/playback_gst.cpp @@ -848,7 +848,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 @@ -856,7 +855,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;