summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorGravatar dmaas 2003-01-15 13:14:47 +0000
committerGravatar dmaas 2003-01-15 13:14:47 +0000
commit2ecf31c96d7a1dac61188c247ca7fe6a65e6b578 (patch)
tree989c38c69220302994efff1b2eaa2d6bfce9b9db /src/main.c
parentimplement 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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 1c6f190..452d92f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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);