[vlc-devel] [PATCH] Adding a libvlc_MediaPlayerLengthChanged event
beauze.h at gmail.com
Thu May 14 14:57:39 CEST 2009
On Mon, May 11, 2009 at 10:21 PM, Laurent Aimar <fenrir at via.ecp.fr> wrote:
> 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 ?
That should do it.
Thanks for splitting in two events ! :)
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2399 bytes
Desc: not available
More information about the vlc-devel