diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-12-13 18:54:51 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-12-13 18:54:51 +0100 |
commit | 44866dd2d2204128bf37be82a709de92018113a3 (patch) | |
tree | 86f1ca91be4a8c5c2d4a65f7295a727720d73cd5 /ipecamera/ipecamera.c | |
parent | 5af397b0053c32b96b4b83767ddefc22d1fd09f2 (diff) | |
download | ipecamera-44866dd2d2204128bf37be82a709de92018113a3.tar.gz ipecamera-44866dd2d2204128bf37be82a709de92018113a3.tar.bz2 ipecamera-44866dd2d2204128bf37be82a709de92018113a3.tar.xz ipecamera-44866dd2d2204128bf37be82a709de92018113a3.zip |
Do not call the normall callback in the raw-data-only mode
Diffstat (limited to 'ipecamera/ipecamera.c')
-rw-r--r-- | ipecamera/ipecamera.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipecamera/ipecamera.c b/ipecamera/ipecamera.c index d963494..b76cf19 100644 --- a/ipecamera/ipecamera.c +++ b/ipecamera/ipecamera.c @@ -275,7 +275,7 @@ int ipecamera_start(pcilib_context_t *vctx, pcilib_event_t event_mask, pcilib_ev ctx->buffer_pos = 0; ctx->parse_data = (flags&PCILIB_EVENT_FLAG_RAW_DATA_ONLY)?0:1; ctx->cur_size = 0; - + ctx->dim.width = IPECAMERA_WIDTH; GET_REG(n_lines_reg, ctx->dim.height); @@ -405,7 +405,7 @@ int ipecamera_start(pcilib_context_t *vctx, pcilib_event_t event_mask, pcilib_ev ctx->autostop.evid = vctx->params.autostop.max_events; } - if (flags&PCILIB_EVENT_FLAG_PREPROCESS) { + if ((ctx->parse_data)&&(flags&PCILIB_EVENT_FLAG_PREPROCESS)) { ctx->n_preproc = pcilib_get_cpu_count(); // it would be greate to detect hyperthreading cores and ban them |