[vlc-devel] [PATCH] Adding a libvlc_MediaPlayerLengthChanged event
Hugo Beauzee-Luyssen
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:
> 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,
>
That should do it.
Thanks for splitting in two events ! :)
--
Hugo Beauzée-Luyssen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Adding-a-libvlc_MediaPlayerLengthChanged-event.patch
Type: text/x-patch
Size: 2399 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20090514/ea86bb46/attachment.bin>
More information about the vlc-devel
mailing list