From a28ebe6eaeb88d2a6a6c97491a47cbca5a441a91 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 6f006f1ce9026cccddfe87a88fb3ebaa1f6a9e98. --- libarmbox/playback_gst.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libarmbox/playback_gst.cpp b/libarmbox/playback_gst.cpp index 181c593..f402cd0 100644 --- a/libarmbox/playback_gst.cpp +++ b/libarmbox/playback_gst.cpp @@ -847,14 +847,11 @@ bool cPlayback::GetPosition(int &position, int &duration) g_signal_emit_by_name(audioSink ? audioSink : videoSink, "get-decoder-time", &pts); if (!GST_CLOCK_TIME_IS_VALID(pts)){ lt_info( "%s - %d failed\n", __FUNCTION__, __LINE__); - return false; } }else{ - if(!gst_element_query_position(m_gst_playbin, fmt, &pts)){ + if(!gst_element_query_position(m_gst_playbin, fmt, &pts)) { lt_info( "%s - %d failed\n", __FUNCTION__, __LINE__); - return false; - } } } position = pts / 1000000.0;