diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-12-12 18:06:09 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-12-12 18:06:09 +0100 |
commit | 6169da95761fbf0851033d106f0506b9632ce0c9 (patch) | |
tree | 680a22b1a14e6448af1a96def6674360a8d547f7 | |
parent | b7fad42b29f05bbd56988d5f01fe25334b9a454b (diff) | |
download | ipecamera-6169da95761fbf0851033d106f0506b9632ce0c9.tar.gz ipecamera-6169da95761fbf0851033d106f0506b9632ce0c9.tar.bz2 ipecamera-6169da95761fbf0851033d106f0506b9632ce0c9.tar.xz ipecamera-6169da95761fbf0851033d106f0506b9632ce0c9.zip |
Stop reader thread on pcilib_stop
-rw-r--r-- | ipecamera/reader.c | 2 |
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; } |