[vlc-devel] Add timing information to snapshots

Olivier Aubert oaubert at lisi.univ-lyon1.fr
Thu Feb 23 18:22:32 CET 2006


I would like to add timing information to the snapshot code in
src/vout_itnf.c. It is important for my application (which gets the
snapshots through the mediacontrol API), and I think that it could
benefit the "snapshot to a file" functionality (by appending to the
filename a timestamp related to the movie time rather than the absolute

In the previous approach that I used (the snapshot video output module),
I obtained the time with
    var_Get( p_input, "time", &val );
    i_result = val.i_time - p_input->i_pts_delay;

The problem is that it depends on p_input access, and I am not
confortable with adding a 
vlc_object_find( p_this, VLC_OBJECT_INPUT, FIND_PARENT );

to the core. Is it alright, or is there some other method? 


This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html

More information about the vlc-devel mailing list