[vlc-commits] video output: only update the current format if filters were added in the chain

Steve Lhomme git at videolan.org
Thu Nov 14 08:29:32 CET 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Nov  5 12:18:35 2019 +0100| [6c74174514c2d4d82d7cafc24998dd6f17780830] | committer: Steve Lhomme

video output: only update the current format if filters were added in the chain

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

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

diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index dc093e5f95..df87bcb34e 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -840,7 +840,10 @@ static void ThreadChangeFilters(vout_thread_t *vout,
             free(e->name);
             free(e);
         }
-        p_fmt_current = filter_chain_GetFmtOut(chain);
+        if (!filter_chain_IsEmpty(chain))
+        {
+            p_fmt_current = filter_chain_GetFmtOut(chain);
+        }
         vlc_array_clear(array);
     }
 



More information about the vlc-commits mailing list