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:
parent
1906551515
commit
a51052f41b
|
@ -363,7 +363,7 @@ int raw1394_iso_xmit_write(raw1394handle_t handle, unsigned char *data, unsigned
|
||||||
}
|
}
|
||||||
|
|
||||||
/* wait until buffer space is available */
|
/* 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,
|
/* if the file descriptor has been set non-blocking,
|
||||||
return immediately */
|
return immediately */
|
||||||
if(fcntl(handle->fd, F_GETFL) & O_NONBLOCK) {
|
if(fcntl(handle->fd, F_GETFL) & O_NONBLOCK) {
|
||||||
|
|
Reference in New Issue