Skip to content

Commit c8ee20a

Browse files
committed
vcap/testcard: Fix frames being limited to 0 by default
The capture_frames was initialized to 0 which together with changes in commit 2d72943 meant that no frames were captured by default.
1 parent 641df59 commit c8ee20a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/video_capture/testcard.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,7 @@ static int vidcap_testcard_init(struct vidcap_params *params, void **state)
524524
}
525525
strncat(s->pattern, DEFAULT_PATTERN, sizeof s->pattern - 1);
526526
s->audio_frequency = DEFAULT_AUIDIO_FREQUENCY;
527+
s->capture_frames = -1;
527528

528529
char *fmt = strdup(vidcap_params_get_fmt(params));
529530
char *ptr = fmt;

0 commit comments

Comments
 (0)