Skip to content

Commit

Permalink
vout: clean filters callback in case of failure
Browse files Browse the repository at this point in the history
  • Loading branch information
tguillem committed Jun 19, 2017
1 parent f5ac138 commit 122a056
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/video_output/video_output.c
Expand Up @@ -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);
}
Expand Down

0 comments on commit 122a056

Please sign in to comment.