From 90895b21b4b87f1f8f5ff8854c0de376f7688146 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Mon, 22 Oct 2012 21:08:46 +0200 Subject: Skip non-informative packets on DMA --- ipecamera/ipecamera.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ipecamera/ipecamera.c') 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; -- cgit v1.2.3