diff options
| author | 2005-07-04 04:04:22 +0000 | |
|---|---|---|
| committer | 2005-07-04 04:04:22 +0000 | |
| commit | a51052f41b164c285f91f4b48724e1fc2d125637 (patch) | |
| tree | 129fc4cf5ce3c7eae2ab786877e7eab0b2ae56e3 | |
| parent | add sanity check to queuing of packets in rawiso xmit (diff) | |
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
| -rw-r--r-- | src/iso.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |
