From ab89746f55596a52c9f6910b20971e9bee49c7d5 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Thu, 9 Jul 2020 19:51:57 +0900 Subject: [PATCH] glwindow/winrt: Move to c++ For native window size query, c++ API is much convenient than c API Part-of: --- gst-libs/gst/gl/meson.build | 3 ++- .../{gstglwindow_winrt_egl.c => gstglwindow_winrt_egl.cpp} | 0 2 files changed, 2 insertions(+), 1 deletion(-) rename gst-libs/gst/gl/winrt/{gstglwindow_winrt_egl.c => gstglwindow_winrt_egl.cpp} (100%) diff --git a/gst-libs/gst/gl/meson.build b/gst-libs/gst/gl/meson.build index d94b0505d2..5c43bd3cb2 100644 --- a/gst-libs/gst/gl/meson.build +++ b/gst-libs/gst/gl/meson.build @@ -723,7 +723,7 @@ if need_win_winrt != 'no' and host_system == 'windows' enabled_gl_winsys += 'winrt' glconf.set10('GST_GL_HAVE_WINDOW_WINRT', 1) gl_sources += [ - 'winrt/gstglwindow_winrt_egl.c' + 'winrt/gstglwindow_winrt_egl.cpp' ] elif need_win_winrt == 'yes' error('WinRT is enabled, but headers/libraries were not found') @@ -978,6 +978,7 @@ if build_gstgl gstgl = library('gstgl-' + api_version, gl_sources, gl_priv_sources, gl_enumtypes_c, gl_enumtypes_h, c_args : gst_plugins_base_args + gl_cpp_args + ['-DBUILDING_GST_GL'], + cpp_args : gst_plugins_base_args + gl_cpp_args + ['-DBUILDING_GST_GL'], objc_args : gst_plugins_base_args + gl_cpp_args + gl_objc_args + ['-DBUILDING_GST_GL'], include_directories : [configinc, libsinc, gl_includes], version : libversion, diff --git a/gst-libs/gst/gl/winrt/gstglwindow_winrt_egl.c b/gst-libs/gst/gl/winrt/gstglwindow_winrt_egl.cpp similarity index 100% rename from gst-libs/gst/gl/winrt/gstglwindow_winrt_egl.c rename to gst-libs/gst/gl/winrt/gstglwindow_winrt_egl.cpp