Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @@ -834,12 +820,17 @@ 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__);
- + }
- }
- position = pts / 1000000.0;
- // duration
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement