On Sat, 2010-11-13 at 16:52 -0500, Andy Walls wrote: > On Sat, 2010-11-13 at 17:23 -0500, Devin Heitmueller wrote: > > On Sat, Nov 13, 2010 at 3:06 PM, Andy Walls <[email protected]> wrote: > > > > There's got to be a less dumb way to deal with this issue. I can > > understand the goal behind not allowing the user to change the > > standard in the middle of streaming (returning EBUSY), but there > > really should be some way to accomplish this without having to have > > the application close all the filehandles > > No all filehandles. MythTV actually keeps two filehandles open on the > same device node: one for control ioctl()s and one for read()s. It only > would need to close and reopen 1 of them. Or use VIDIOC_ENC_CMD_STOP as > it currently does for ivtv.
Typo. That should be "Not all filehandles". > Having the a driver automatically kill the VBI stream when the MPEG > stream stopped would be an anti-feature however. People (i.e. me) do > sometimes just capture VBI, but occasionally start and stop the video > program to check it. The driver can't know what's going on in userspace > in every use case. EBUSY indicates the device is in use, user and/or > userspce needs to stop what is keeping the driver busy. I should clarify that I can only do that with the ivtv cards. The CX23418 firmware stalls the VBI data stream when a video data stream is not active as well. (Well, actually it transfers the first 4 buffers of VBI data and then stops.) Regards, Andy _______________________________________________ ivtv-devel mailing list [email protected] http://ivtvdriver.org/mailman/listinfo/ivtv-devel
