diff options
author | Alfred E. Heggestad <alfred.heggestad@gmail.com> | 2017-12-08 23:13:02 +0100 |
---|---|---|
committer | Alfred E. Heggestad <alfred.heggestad@gmail.com> | 2017-12-08 23:13:02 +0100 |
commit | bd56896d05de576d667a413f47bca5e385508502 (patch) | |
tree | 8858f40c40cbe1dc45694b66fea4d2f8ca12bf47 /modules/v4l2 | |
parent | 6a3a3c9af00a38a963e9b82c8d11cc1f0f96f69b (diff) |
v4l2: additional debug
Diffstat (limited to 'modules/v4l2')
-rw-r--r-- | modules/v4l2/v4l2.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/v4l2/v4l2.c b/modules/v4l2/v4l2.c index e079fed..983ad53 100644 --- a/modules/v4l2/v4l2.c +++ b/modules/v4l2/v4l2.c @@ -84,7 +84,7 @@ static enum vidfmt match_fmt(u_int32_t fmt) } -static void print_video_input(struct vidsrc_st *st) +static void print_video_input(const struct vidsrc_st *st) { struct v4l2_input input; @@ -398,6 +398,8 @@ static void destructor(void *arg) { struct vidsrc_st *st = arg; + debug("v4l2: stopping video source..\n"); + if (st->run) { st->run = false; pthread_join(st->thread, NULL); |