[vlc-devel] intf-event INPUT_EVENT_POSITION notification adjustment
Lukasz M
lukasz.m.luki at gmail.com
Wed Aug 24 14:22:06 CEST 2011
2011/8/24 Rémi Denis-Courmont <remi at remlab.net>:
> On Wed, 24 Aug 2011 13:18:32 +0200, Lukasz M <lukasz.m.luki at gmail.com>
> wrote:
>> I agree it is not the best solution I proposed.
>> It was just first try to get current position.
>> I will have a look on this again to meet my needs in proper way.
>
> Just query the time whenever you need it.
>
by quering time you mean something like this:?
int64_t i_time;
input_Control( p_input, INPUT_GET_TIME, &i_time ) )
Proof me wrong, but this solution won't work. Of course I can query
this variable as often as I want,
but this variable is updated every 250ms as well. Quering with shorter
period will repeat results until next update.
I think this code would work:
demux_Control( p_input->p->input.p_demux, DEMUX_GET_TIME, &i_time )
but p variable is private (according comment in header file) so I
believe I'm not allowed to use it outside input.c file.
For now I leave it, I will think about it again later. For now I can
work with 250ms resolution.
Best Regards,
Lukasz Marek
More information about the vlc-devel
mailing list