[vlc-devel] [PATCH] Adding a libvlc_MediaPlayerLengthChanged event
Laurent Aimar
fenrir at via.ecp.fr
Mon May 11 22:21:39 CEST 2009
H,
On Mon, May 11, 2009, Hugo Beauzee-Luyssen wrote:
> I disagree : at the moment, there's no way of knowing if the length
> has changed. Indeed the Trigger function is called with
> INPUT_EVENT_TIMES, which means either length, time, or position has
> changed. However, the only way of knowing if the length has changed is
> to call libvlc_media_player_get_length each time an time or position
> changed event is fired. This patch is provided in order to prevent
> this kind of behaviour.
Ok, I have splitted the event INPUT_EVENT_TIMES into two:
- INPUT_EVENT_POSITION for position/time changes.
- INPUT_EVENT_LENGTH for length changes.
(in [768bd8a4d8b88a8f44934b172541b14ffd546111]).
Could you update your patch on libvlc to use INPUT_EVENT_LENGTH ?
Regards,
--
fenrir
More information about the vlc-devel
mailing list