[vlc-devel] Re: (no subject)
kpetiot at free.fr
kpetiot at free.fr
Thu Apr 13 17:48:34 CEST 2006
Selon Olivier Aubert <oaubert at lisi.univ-lyon1.fr>:
> > It's a long int, but I do not know the unit of it... And it may help me to
> know
> > it to be able to develope my API.
> It is in milliseconds (cf in modules/video_output/snapshot.c, function
> snapshot_GetMovieTime).
>
> Olivier
Thanks, but in this case, why I am getting :
18 : 5047L
19 : 5047L
20 : 5206L
21 : 5206L
22 : 5206L
23 : 5206L
24 : 5364L
25 : 5430L
26 : 5430L
27 : 5430L
28 : 5430L
I should get :
20 : 5206
21 : 5246
22 : 5286
23 : 5326
24 : 5366
25 : 5306
It's seem that I have a problem about the position, but I don't know where is
the error.
I add in vlcglue.c
A methode to get all_snapshot
Inside I'm doing :
for (i_index=0 ; i_index < i_cachesize ; i_index++ )
{
py_item = PyDict_New();
/*printf("i_index %d \n", i_index );*/
PyDict_SetItemString( py_item, "width",
Py_BuildValue( "i", p_imlist[i_index]->width ) );
PyDict_SetItemString( py_item, "height",
Py_BuildValue( "i", p_imlist[i_index]->height ) );
PyDict_SetItemString( py_item, "type",
Py_BuildValue( "i", p_imlist[i_index]->type ) );
PyDict_SetItemString( py_item, "data",
Py_BuildValue( "s#", p_imlist[i_index]->data,
p_imlist[i_index]->size ) );
PyDict_SetItemString( py_item, "date",
Py_BuildValue( "L", p_imlist[i_index]->date ) );
PyList_Append( py_list, py_item);
}
But i don't know if the error come from that.
Kevin
--
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