Page 1 of 1

Set_time and Get_Time Error

Posted: 27 Dec 2012 09:06
by spider58
Hello. Sorry for my bad english.

I'm developing a mediaplayer and trying to seek anywhere on video.

but i have a problem.

example code:

Set time (Video was paused before this command)

Code: Select all

libvlc_media_player_set_time(myHandle,110000) '''''' SEEK TO 110th second
Get Time (video currently at pause mode)

Code: Select all

libvlc_media_player_get_time(myHandle) '''' RETURNS 109810 . So -190 Miliseconds difference
when i tried with other video this value changing (-10 miliseconds or 7 miliseconds ot etc...)

I never getting true get_time

Why happening those set and get differences.

At same videos VLC player working good.

Inadvance thanks for relations.

Re: Set_time and Get_Time Error

Posted: 27 Dec 2012 16:09
by Jean-Baptiste Kempf
Are you sure you don't get times in microseconds?

Re: Set_time and Get_Time Error

Posted: 28 Dec 2012 09:42
by spider58
Are you sure you don't get times in microseconds?
yes. i tried this. When i try to get_time in microseconds (<500 miliseconds) set_time this working good. and returning 110000.

But if i try to wait and (>=500 miliseconds) get_time returning wrong time. (as my first post)