[vlc-devel] [PATCH] Adding a libvlc_MediaPlayerLengthChanged event
Laurent Aimar
fenrir at via.ecp.fr
Thu May 14 20:17:30 CEST 2009
Hi,
On Thu, May 14, 2009, Hugo Beauzee-Luyssen wrote:
> 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 ?
> >
> > Regards,
> >
>
> That should do it.
> Thanks for splitting in two events ! :)
Merged by [a5b3becf4c21e8083bdda6cb96349022ad313ad3]
Thanks for your work.
--
fenrir
More information about the vlc-devel
mailing list