[vlc-devel] [PATCH 01/18] splitter: insert converter if requested
Victorien Le Couviour--Tuffet
victorien.lecouviour.tuffet at gmail.com
Fri Aug 4 19:40:55 CEST 2017
---
src/video_output/display.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/src/video_output/display.c b/src/video_output/display.c
index 220ae3866b..d2daf8ba0d 100644
--- a/src/video_output/display.c
+++ b/src/video_output/display.c
@@ -1544,6 +1544,18 @@ vout_display_t *vout_NewSplitter(vout_thread_t *vout,
video_splitter_Delete(splitter);
return NULL;
}
+
+ if (wrapper->fmt.i_chroma != splitter->fmt.i_chroma)
+ {
+ wrapper->fmt.i_chroma = splitter->fmt.i_chroma;
+ if (VoutDisplayResetRender(wrapper))
+ {
+ free(wrapper->owner.sys);
+ vout_display_Delete(wrapper);
+ return NULL;
+ }
+ }
+
vout_display_sys_t *sys = malloc(sizeof(*sys));
if (!sys)
abort();
--
2.13.1
More information about the vlc-devel
mailing list