return false in decoder have no time

Origin commit data
------------------
Branch: master
Commit: 5f230f4d38
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2017-11-11 (Sat, 11 Nov 2017)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2017-11-11 16:52:38 +01:00
committed by Thilo Graf
parent d85da6867a
commit e1046bd30e

View File

@@ -848,6 +848,7 @@ bool cPlayback::GetPosition(int &position, int &duration)
if (!GST_CLOCK_TIME_IS_VALID(pts)) if (!GST_CLOCK_TIME_IS_VALID(pts))
{ {
lt_info( "%s - %d failed\n", __FUNCTION__, __LINE__); lt_info( "%s - %d failed\n", __FUNCTION__, __LINE__);
return false;
} }
} }
else else
@@ -855,6 +856,7 @@ bool cPlayback::GetPosition(int &position, int &duration)
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__); lt_info( "%s - %d failed\n", __FUNCTION__, __LINE__);
return false;
} }
} }
position = pts / 1000000.0; position = pts / 1000000.0;