Hi vadim, Such a long time I haven't heard about you, hope everything is going well for you ... Yeah I miss the destroy, I will probably improve the threaded way because grab pics take some CPU not really usefull since a picture is actually taken every 10ms . . . later I will propose a new patch... Thank you vadim,
Aurélien --- En date de : Mer 30.6.10, Vadim Lebedev <address@hidden> a écrit : De: Vadim Lebedev <address@hidden> Objet: Re: [Linphone-developers] mediastreamer2 patch > msv4l2 in a thread À: address@hidden Date: Mercredi 30 juin 2010, 17h44
Aurelien,
to avoid segfault this should be:
static void msv4l2_uninit(MSFilter *f){
V4l2State *s=(V4l2State*)f->data;
ms_free(s->dev);
+#ifdef V4L2_THREADED
+ ms_mutex_destroy(&s->mutex);
+#endif
ms_free(s);
}
Thanks
Vadim
On 06/23/2010 03:00 PM, Aurelien Bouin wrote:
Hi,
Attached is a patch that permits when define V4L2_THREADED to get the frames from your webcam into a thread, it permits to avoid to consume CPU time waiting frames when your webcam is slow...
Thank you,
Aurélien BOUIN
_______________________________________________
Linphone-developers mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/linphone-developers
-----La pièce jointe associée suit-----
|