vo_postprocess.c: fixed running double_framerate

double_framerate takes input frame first and then nothing and it
generates another frame with NULL input so modify the assert so.
This commit is contained in:
Martin Pulec
2023-01-10 15:12:59 +01:00
parent 1d8445e0e5
commit 88ae690ea9

View File

@@ -184,7 +184,7 @@ bool vo_postprocess(struct vo_postprocess_state *s, struct video_frame *in,
if (s == NULL) {
return FALSE;
}
assert(in == ((struct vo_postprocess_state_single *) simple_linked_list_first(s->postprocessors))->f);
assert(in == ((struct vo_postprocess_state_single *) simple_linked_list_first(s->postprocessors))->f || in == NULL);
for(void *it = simple_linked_list_it_init(s->postprocessors); it != NULL; ) {
struct vo_postprocess_state_single *state = simple_linked_list_it_next(&it);