summaryrefslogtreecommitdiffstats
path: root/ipecamera/reader.c
diff options
context:
space:
mode:
Diffstat (limited to 'ipecamera/reader.c')
-rw-r--r--ipecamera/reader.c2
1 files changed, 1 insertions, 1 deletions
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;
}