[vlc-devel] Re: problem with avi file
Laurent Aimar
fenrir at via.ecp.fr
Wed Jun 2 00:29:25 CEST 2004
On Tue, Jun 01, 2004, Michael Pron wrote:
> Ok, i agree the wx interface is good :)
> but is there something that can be used to go at a position giving
> the number of seconds?? ( i added some functions for the mozilla plugin
> that used input_Seek in the INPUT_SEEK_SECONDS case. And i was quite
> surprised to see that it doesn't work properly with avi file in the
> current cvs)
Yes, you can. In fact input_Seek is deprecated.
You have two choice:
- using var_*:
vlc_value_t val;
val.i_time = i_seconds * U64C(1000000); /* in micro second units */
var_Set( p_input, "time", val );
- using input_Control:
input_Control( p_input, INPUT_SET_TIME, (uin64_t)(i_seconds * U64C(1000000)) );
(Don't forget to cast to uin64_t).
--
fenrir
--
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html
If you are in trouble, please contact <postmaster at videolan.org>
More information about the vlc-devel
mailing list