libarmbox/playback_gst.cpp: small format changes

Origin commit data
------------------
Branch: master
Commit: 0ad071c97b
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-11-14 (Tue, 14 Nov 2017)


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

------------------
This commit was generated by Migit
This commit is contained in:
2017-11-14 15:24:03 +01:00
parent 7e2988fa05
commit 9d2b669b6b

View File

@@ -845,10 +845,13 @@ 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__);