diff options
Diffstat (limited to 'mpjpeg.h')
-rw-r--r-- | mpjpeg.h | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -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); |