From 69d18d29800f8cc3a5581f30dc5e0b51c76f9d9d Mon Sep 17 00:00:00 2001 From: niels Date: Mon, 15 Feb 2016 21:19:32 +0100 Subject: [PATCH] signal thread while in lock, not outside of lock. fix jumpy playback --- veejay-current/veejay-server/libstream/v4l2utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/veejay-current/veejay-server/libstream/v4l2utils.c b/veejay-current/veejay-server/libstream/v4l2utils.c index 47157a89..5ba4182c 100644 --- a/veejay-current/veejay-server/libstream/v4l2utils.c +++ b/veejay-current/veejay-server/libstream/v4l2utils.c @@ -1224,8 +1224,8 @@ static int v4l2_pull_frame_intern( v4l2info *v ) v->frames_done[v->frameidx] = 1; v->frame_ready = v->frameidx; v->frameidx = (v->frameidx + 1) % N_FRAMES; + signal_(v->video_info); unlock_(v->video_info); - signal_(v->video_info); if(!v->rw) { if( -1 == vioctl( v->fd, VIDIOC_QBUF, &(v->buffer))) {