summaryrefslogtreecommitdiff
path: root/mpjpeg.h
diff options
context:
space:
mode:
Diffstat (limited to 'mpjpeg.h')
-rw-r--r--mpjpeg.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/mpjpeg.h b/mpjpeg.h
index 85f4fcf..f850adc 100644
--- a/mpjpeg.h
+++ b/mpjpeg.h
@@ -11,12 +11,10 @@ struct frame {
};
struct mpjpeg_stream {
- struct frame a;
- struct frame b;
-
- struct frame *front;
- struct frame *back;
- pthread_mutex_t frontlock;
+ struct frame a, b;
+ struct frame *front, *back;
+ pthread_rwlock_t frontlock;
+ long framecount;
};
void mpjpeg_reader(struct mpjpeg_stream *s, int fd, const char *boundary);