mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-27 15:32:43 +02:00
return false in decoder have no time
Origin commit data
------------------
Branch: master
Commit: 72579547e3
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:
committed by
TangoCash
parent
2539465ea1
commit
4c59329d97
@@ -815,12 +815,16 @@ 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
|
||||||
{
|
{
|
||||||
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;
|
||||||
// duration
|
// duration
|
||||||
|
Reference in New Issue
Block a user