[vlc-commits] vout: clean filters callback in case of failure
Thomas Guillem
git at videolan.org
Mon Jun 19 15:36:46 CEST 2017
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Jun 19 15:36:14 2017 +0200| [122a056bc35d986f829f7f9e6f7ddc76ba210e35] | committer: Thomas Guillem
vout: clean filters callback in case of failure
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=122a056bc35d986f829f7f9e6f7ddc76ba210e35
---
src/video_output/video_output.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index dfd4914b1b..6e9ae1827c 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -857,6 +857,7 @@ static void ThreadChangeFilters(vout_thread_t *vout,
if (filter_chain_AppendConverter(vout->p->filter.chain_interactive,
&fmt_current, &fmt_target) != 0) {
msg_Err(vout, "Failed to compensate for the format changes, removing all filters");
+ ThreadDelAllFilterCallbacks(vout);
filter_chain_Reset(vout->p->filter.chain_static, &fmt_target, &fmt_target);
filter_chain_Reset(vout->p->filter.chain_interactive, &fmt_target, &fmt_target);
}
More information about the vlc-commits
mailing list