summaryrefslogtreecommitdiffstats
path: root/ipecamera/ipecamera.c
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2012-10-22 21:08:46 +0200
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2012-10-22 21:08:46 +0200
commit90895b21b4b87f1f8f5ff8854c0de376f7688146 (patch)
tree059c566e2eb4e144f1ab3c76b26feb9614573997 /ipecamera/ipecamera.c
parent761270f64b565f433233455e093a6a0b0ab6c747 (diff)
downloadipecamera-90895b21b4b87f1f8f5ff8854c0de376f7688146.tar.gz
ipecamera-90895b21b4b87f1f8f5ff8854c0de376f7688146.tar.bz2
ipecamera-90895b21b4b87f1f8f5ff8854c0de376f7688146.tar.xz
ipecamera-90895b21b4b87f1f8f5ff8854c0de376f7688146.zip
Skip non-informative packets on DMA
Diffstat (limited to 'ipecamera/ipecamera.c')
-rw-r--r--ipecamera/ipecamera.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ipecamera/ipecamera.c b/ipecamera/ipecamera.c
index 25fa060..d1a9102 100644
--- a/ipecamera/ipecamera.c
+++ b/ipecamera/ipecamera.c
@@ -557,6 +557,7 @@ int ipecamera_stop(pcilib_context_t *vctx, pcilib_event_flags_t flags) {
ctx->frame_mutex_destroy = 0;
}
+
if (ctx->wdma != PCILIB_DMA_ENGINE_INVALID) {
pcilib_stop_dma(vctx->pcilib, ctx->wdma, PCILIB_DMA_FLAGS_DEFAULT);
ctx->wdma = PCILIB_DMA_ENGINE_INVALID;