mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 23:12:44 +02:00
fix get play position
Origin commit data
------------------
Branch: master
Commit: 7c4935a1c9
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2017-10-24 (Tue, 24 Oct 2017)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -806,13 +806,10 @@ bool cPlayback::GetPosition(int &position, int &duration)
|
|||||||
if (audioSink || videoSink)
|
if (audioSink || videoSink)
|
||||||
{
|
{
|
||||||
g_signal_emit_by_name(audioSink ? audioSink : videoSink, "get-decoder-time", &pts);
|
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__);
|
lt_info( "%s - %d failed\n", __FUNCTION__, __LINE__);
|
||||||
}
|
}
|
||||||
}
|
}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__);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user