linphone-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-developers] mediastreamer2 patch > msv4l2 in a thread


From: Vadim Lebedev
Subject: Re: [Linphone-developers] mediastreamer2 patch > msv4l2 in a thread
Date: Wed, 30 Jun 2010 17:44:17 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100423 Lightning/1.0b1 Thunderbird/3.0.4

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]