diff --git a/libarmbox/playback_gst.cpp b/libarmbox/playback_gst.cpp index 9775597..29b459a 100644 --- a/libarmbox/playback_gst.cpp +++ b/libarmbox/playback_gst.cpp @@ -411,6 +411,8 @@ cPlayback::cPlayback(int num) gst_version (&major, &minor, µ, &nano); + gst_mpegts_initialize(); + if (nano == 1) nano_str = "(CVS)"; else if (nano == 2) @@ -821,7 +823,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 @@ -829,7 +830,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;