[vlc-commits] ci_filters: compilation fix

Felix Paul Kühne git at videolan.org
Sun Jun 10 14:52:42 CEST 2018


vlc | branch: master | Felix Paul Kühne <felix at feepk.net> | Sun Jun 10 14:52:36 2018 +0200| [62ec62cb5c9b586059d25546d5e78602859b4c1a] | committer: Felix Paul Kühne

ci_filters: compilation fix

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

 modules/video_filter/ci_filters.m | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/modules/video_filter/ci_filters.m b/modules/video_filter/ci_filters.m
index b1f8bf5b65..2b928216b5 100644
--- a/modules/video_filter/ci_filters.m
+++ b/modules/video_filter/ci_filters.m
@@ -545,6 +545,11 @@ static picture_t *CVPX_to_CVPX_converter_BufferNew(filter_t *p_filter)
     return picture_NewFromFormat(&p_filter->fmt_out.video);
 }
 
+static const struct filter_video_callbacks image_filter_cbs =
+{
+    .buffer_new = CVPX_to_CVPX_converter_BufferNew,
+};
+
 static filter_t *
 CVPX_to_CVPX_converter_Create(filter_t *filter, bool to_rgba)
 {
@@ -566,8 +571,7 @@ CVPX_to_CVPX_converter_Create(filter_t *filter, bool to_rgba)
         converter->fmt_in.i_codec = VLC_CODEC_CVPX_BGRA;
     }
 
-    converter->owner.video.buffer_new = CVPX_to_CVPX_converter_BufferNew;
-
+    converter->owner.video = &image_filter_cbs;
 
     converter->p_module = module_need(converter, "video converter", NULL, false);
     if (!converter->p_module)



More information about the vlc-commits mailing list