libvlc 0.9.4 event bug

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
Kairos
Blank Cone
Blank Cone
Posts: 45
Joined: 01 Mar 2008 01:49
Operating System: Windows
Location: Scottsdale, Az
Contact:

libvlc 0.9.4 event bug

Postby Kairos » 24 Oct 2008 06:58

I'm using the event manager to attach a callback to the libvlc_MediaPlayerTimeChanged event. I'm then reading the current time in my callback using the libvlc_event_t object. The time didn't look right to me so I compared it to the time I get back from libvlc_media_player_get_time and noticed that the time passed to my callback function is 1000 times bigger then the time returned from the libvlc_media_player_get_time result.

actual time = 25ms
value obtained from libvlc_event_t parameter = 25000
value returned from libvlc_media_player_get_time = 25
Last edited by Kairos on 24 Oct 2008 09:38, edited 1 time in total.

Kairos
Blank Cone
Blank Cone
Posts: 45
Joined: 01 Mar 2008 01:49
Operating System: Windows
Location: Scottsdale, Az
Contact:

Re: libvlc event bug

Postby Kairos » 24 Oct 2008 09:37

I've also noticed that when you call stop via libvlc_media_player_stop the MediaPlayerEndReached event is thrown, not the MediaPlayerStopped event like I expected.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: libvlc 0.9.4 event bug

Postby Jean-Baptiste Kempf » 25 Oct 2008 04:58

Please fill a bug on that.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 37 guests