diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-12-09 20:31:11 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-12-09 20:31:11 +0100 |
commit | 7a4cfb9e546c496792d3fe0c61c822c66ad0128f (patch) | |
tree | df866322c1d864c9760cacdcaac43057fbd776c3 /cli.c | |
parent | daaf50c75a4201bdf2911aa9c2fa2765fa9e40e7 (diff) | |
download | ipecamera-7a4cfb9e546c496792d3fe0c61c822c66ad0128f.tar.gz ipecamera-7a4cfb9e546c496792d3fe0c61c822c66ad0128f.tar.bz2 ipecamera-7a4cfb9e546c496792d3fe0c61c822c66ad0128f.tar.xz ipecamera-7a4cfb9e546c496792d3fe0c61c822c66ad0128f.zip |
Send proper event id to get_data function
Diffstat (limited to 'cli.c')
-rw-r--r-- | cli.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1121,7 +1121,7 @@ int GrabCallback(pcilib_event_id_t event_id, pcilib_event_info_t *info, void *us return 0; } - data = pcilib_get_data(handle, ctx->event, ctx->data, &size); + data = pcilib_get_data(handle, event_id, ctx->data, &size); if (!data) { ctx->broken_count++; return 0; @@ -1136,7 +1136,7 @@ int GrabCallback(pcilib_event_id_t event_id, pcilib_event_info_t *info, void *us else Error("Write failed"); } - pcilib_return_data(handle, ctx->event, data); + pcilib_return_data(handle, event_id, data); // printf("%lu %lu\n", info->seqnum, info->offset); |