From a51052f41b164c285f91f4b48724e1fc2d125637 Mon Sep 17 00:00:00 2001 From: ddennedy Date: Mon, 4 Jul 2005 04:04:22 +0000 Subject: [PATCH] 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 --- src/iso.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/iso.c b/src/iso.c index 914b3ec..76ba13a 100644 --- a/src/iso.c +++ b/src/iso.c @@ -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) {