Fix raw1394_iso_xmit_write() to work with recent kernel change to raw1394

to fix bug with stalling on buffer underrun.


git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@160 53a565d1-3bb7-0310-b661-cf11e63c67ab
This commit is contained in:
ddennedy 2005-07-04 04:04:22 +00:00
parent 1906551515
commit a51052f41b
1 changed files with 1 additions and 1 deletions

View File

@ -363,7 +363,7 @@ int raw1394_iso_xmit_write(raw1394handle_t handle, unsigned char *data, unsigned
}
/* wait until buffer space is available */
while(handle->iso_status.n_packets == 0) {
while(handle->iso_status.n_packets <= 1) {
/* if the file descriptor has been set non-blocking,
return immediately */
if(fcntl(handle->fd, F_GETFL) & O_NONBLOCK) {