[vlc-devel] [PATCH 01/19] video output: only update the current format if filters were added in the chain
Steve Lhomme
robux4 at ycbcr.xyz
Tue Nov 5 16:18:28 CET 2019
---
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 55aee18d378..aae1e104d2c 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);
}
--
2.17.1
More information about the vlc-devel
mailing list