closedcaption: Fix broken debug function macros with MSVC build
authorSeungha Yang <seungha@centricular.com>
Sat, 2 Oct 2021 12:22:23 +0000 (21:22 +0900)
committerSeungha Yang <seungha@centricular.com>
Mon, 4 Oct 2021 14:03:20 +0000 (23:03 +0900)
commit05496df0d180cf7f264456b6863f2a7b3507d1e4
tree1a17d1f8a393645f4090106c4e715f43e108bd86
parent90e5e0efea2f92667f96c38a9a1b6ed4405cd1e4
closedcaption: Fix broken debug function macros with MSVC build

warning C4003: not enough arguments for function-like macro invocation 'warning'

G_STMT_END macro is extended to the below form with MSVC
__pragma(warning(push)) \
__pragma(warning(disable:4127)) \
while(0) \
__pragma(warning(pop))

So MSVC preprocessor will extend it further to
__pragma(VBI_CAT_LEVEL_LOG(push)) ...

Should rename warning() debug macro function therefore.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1018>
subprojects/gst-plugins-bad/ext/closedcaption/bit_slicer.c
subprojects/gst-plugins-bad/ext/closedcaption/io-sim.c
subprojects/gst-plugins-bad/ext/closedcaption/misc.h
subprojects/gst-plugins-bad/ext/closedcaption/sampling_par.c