On Fri, 5 Jul 2002, Tomas Konir wrote:

> 
> Hi
> I'm looked into code for capturing and into bttv driver.
> There is one interesting thing. When i use vcr i can record video and 
> watch xawtv simultaneously, but avirec or avicap ends with message that   
> ioctl(/dev/video,VIDIOCCAPTURE) failed. But there is only one diference.  
> Capture interface in vcr ignores the EBUSY (this return value can't be    
> returned with v4l1 interface).
> The EBUSY means that someone else uses it and we can ignore it.           
> At the end of mail is small patch for it.
> 
> 
>       MOJE

Oops possibly broken head (my head) when creating patch.
The right is below. sorry.

        MOJE
 

-- 
Tomas Konir
Brno
ICQ 25849167

---------------

--- v4lxif-old.cpp      2002-07-05 13:32:07.000000000 +0200 
+++ v4lxif.cpp  2002-07-05 13:34:46.000000000 +0200 
@@ -265,10 +265,10 @@
 {
     ushort i;
 
-    setupok=true; 
-    //    // capture off 
-    if ( -1 == ioctl(devv4l, VIDIOCCAPTURE, &zero) ){ 
-      if(errno != EINVAL) 
+       setupok=true; 
+    // capture off 
+    if ( -1 == ioctl(devv4l, VIDIOCCAPTURE, &zero) ){ 
+      if(errno != EINVAL && errno !=EBUSY) 
        throw FATAL("VIDIOCCAPTURE in ::v4l1baseif");
     }



_______________________________________________
Avifile mailing list
[EMAIL PROTECTED]
http://prak.org/mailman/listinfo/avifile

Reply via email to