x264enc: Strip trailing whitespace from x264's log messages
authorJan Alexander Steffens (heftig) <jan.steffens@ltnglobal.com>
Tue, 21 Sep 2021 13:05:58 +0000 (15:05 +0200)
committerJan Alexander Steffens (heftig) <jan.steffens@ltnglobal.com>
Tue, 21 Sep 2021 15:50:26 +0000 (17:50 +0200)
commite4a9db6abed31db7211253d5d0a0ceee97c908b9
tree0f22766c194f5c63d04315cc37a4f259fff09bef
parentde87e0d381a058ad5c71eefa42a9a04c168e2186
x264enc: Strip trailing whitespace from x264's log messages

x264 has linebreaks at the end of its log messages that we should
ignore.

Add G_GNUC_PRINTF to the callback to make sure GCC lets us forward the
format string to another function marked as printf (g_strdup_vprintf)
without triggering -Wformat-nonliteral.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-ugly/-/merge_requests/85>
ext/x264/gstx264enc.c