[vlc-commits] vout: fix invalid return check

Thomas Guillem git at videolan.org
Mon Apr 10 18:36:08 CEST 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Apr 10 18:33:27 2017 +0200| [9a02992af306a82e78b1224c11b359b1d138c041] | committer: Thomas Guillem

vout: fix invalid return check

This fixes a regression/typo introduced by
26cefe733f7566b4612a6c1bcc743540f45b0aa6

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9a02992af306a82e78b1224c11b359b1d138c041
---

 src/video_output/video_output.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index 3567617167..8b48a1cc8a 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -763,8 +763,8 @@ static void ThreadChangeFilters(vout_thread_t *vout,
 
     if (!es_format_IsSimilar(&fmt_current, &fmt_target)) {
         msg_Dbg(vout, "Adding a filter to compensate for format changes");
-        if (!filter_chain_AppendConverter(vout->p->filter.chain_interactive,
-                                          &fmt_current, &fmt_target)) {
+        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");
             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