diff options
| author | 2003-01-15 13:14:47 +0000 | |
|---|---|---|
| committer | 2003-01-15 13:14:47 +0000 | |
| commit | 2ecf31c96d7a1dac61188c247ca7fe6a65e6b578 (patch) | |
| tree | 989c38c69220302994efff1b2eaa2d6bfce9b9db /src/main.c | |
| parent | implement tag matching for rawiso reception (diff) | |
add iso_xmit_sync() and iso_xmit_write(); clean up iso handling a bit
git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@102 53a565d1-3bb7-0310-b661-cf11e63c67ab
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -150,6 +150,7 @@ struct raw1394_handle *raw1394_new_handle(void) handle->arm_tag_handler = arm_tag_handler_default; memset(handle->iso_handler, 0, sizeof(handle->iso_handler)); handle->iso_buffer = NULL; + handle->iso_mode = ISO_INACTIVE; return handle; } @@ -164,7 +165,7 @@ struct raw1394_handle *raw1394_new_handle(void) void raw1394_destroy_handle(struct raw1394_handle *handle) { if (handle) { - if(handle->iso_buffer) { + if(handle->iso_mode != ISO_INACTIVE) { raw1394_iso_shutdown(handle); } close(handle->fd); |
