diff options
author | wm4 <wm4@nowhere> | 2016-07-06 13:47:58 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-07-06 13:47:58 +0200 |
commit | 08cd50b84b853fc525a9074099fbf0a12830afe2 (patch) | |
tree | f1f6404f9acd2174f258dda9eab9942a5d87e36d | |
parent | 0b1ef814986cac9b812a24fbf23252d6854f3c47 (diff) |
vf: mark filter chain as uninitialized when mutating it
Sounds fair. Can be used to determine if the filter chain was mutated at
all, and avoiding unconditional reinit if it wasn't.
-rw-r--r-- | video/filter/vf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/video/filter/vf.c b/video/filter/vf.c index b971dc0d8b..17416831f3 100644 --- a/video/filter/vf.c +++ b/video/filter/vf.c @@ -298,6 +298,7 @@ void vf_remove_filter(struct vf_chain *c, struct vf_instance *vf) assert(prev); // not inserted prev->next = vf->next; vf_uninit_filter(vf); + c->initialized = 0; } struct vf_instance *vf_append_filter(struct vf_chain *c, const char *name, @@ -312,6 +313,7 @@ struct vf_instance *vf_append_filter(struct vf_chain *c, const char *name, pprev = &(*pprev)->next; vf->next = *pprev ? *pprev : NULL; *pprev = vf; + c->initialized = 0; } return vf; } |