Skip to content

mpegtsmux, closedcaption: Fix some MSVC warnings

Seungha Yang requested to merge seungha.yang/gstreamer:bad-msvc-warnings into main
    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.
    mpegtsmux: basetsmux: Don't try to return value from void function

    gstbasetsmux.c(1508): warning C4098: 'free_splice': 'void' function returning a value

Merge request reports