Revert "return false in decoder have no time"

This reverts commit 6f006f1ce9.
This commit is contained in:
Jacek Jendrzej
2017-11-12 08:57:41 +01:00
committed by Thilo Graf
parent 5f230f4d38
commit d275525164

View File

@@ -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;