fix get play position

This commit is contained in:
Jacek Jendrzej
2017-10-24 15:57:30 +02:00
committed by Thilo Graf
parent 88ce7b707d
commit 7c4935a1c9

View File

@@ -806,13 +806,10 @@ bool cPlayback::GetPosition(int &position, int &duration)
if (audioSink || videoSink)
{
g_signal_emit_by_name(audioSink ? audioSink : videoSink, "get-decoder-time", &pts);
if (!GST_CLOCK_TIME_IS_VALID(pts))
{
if (!GST_CLOCK_TIME_IS_VALID(pts)){
lt_info( "%s - %d failed\n", __FUNCTION__, __LINE__);
}
}
else
{
}else{
if(!gst_element_query_position(m_gst_playbin, fmt, &pts))
lt_info( "%s - %d failed\n", __FUNCTION__, __LINE__);
}