[vlc-devel] Re: Question on input_thread_t.stream->p_selected_area.i_tell
massiot at via.ecp.fr
Sun Sep 7 22:55:49 CEST 2003
À (At) 2:08 -0700 6/09/03, John Michael Zorko écrivait (wrote) :
>How does one tell what position they're at when reading an MPEG2 PS
>(i.e. VOB) from disk? It doesn't use fopen() / fread(), instead
>opting for a sockets-based approach. The
>stream->p_selected_area.i_tell member is only updated during a seek,
This is not true, see src/input/input_ext-plugins.c:612.
> so what if we never seek i.e. just play? Can I somehow use the
>socket handle to get a FILE * to call ftell() with, or some other
>means of getting the current read pos?
Anyway you can always call lseek(i_handle, 0, SEEK_CUR).
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