From 6169da95761fbf0851033d106f0506b9632ce0c9 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Mon, 12 Dec 2011 18:06:09 +0100 Subject: Stop reader thread on pcilib_stop --- ipecamera/reader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipecamera/reader.c b/ipecamera/reader.c index 3719709..587fc19 100644 --- a/ipecamera/reader.c +++ b/ipecamera/reader.c @@ -126,7 +126,7 @@ static int ipecamera_data_callback(void *user, pcilib_dma_flags_t flags, size_t } if (eof) { - if (ipecamera_new_frame(ctx)) { + if ((ipecamera_new_frame(ctx))||(!ctx->run_reader)) { return PCILIB_STREAMING_STOP; } -- cgit v1.2.3