soup: Fix static build with MSVC

../ext/soup/gstsouploader.c(818): error C4098: '_soup_session_send_async': 'void' function returning a value

It's technically a false warning, but that's how MSVC works, so fix
it.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1805>
This commit is contained in:
Nirbheek Chauhan 2022-03-03 23:04:36 +05:30
parent 7f04ee970b
commit f42f65a993

View file

@ -814,11 +814,10 @@ _soup_session_send_async (SoupSession * session, SoupMessage * msg,
{ {
#ifdef STATIC_SOUP #ifdef STATIC_SOUP
#if STATIC_SOUP == 2 #if STATIC_SOUP == 2
return soup_session_send_async (session, msg, cancellable, soup_session_send_async (session, msg, cancellable, callback, user_data);
callback, user_data);
#else #else
return soup_session_send_async (session, msg, G_PRIORITY_DEFAULT, soup_session_send_async (session, msg, G_PRIORITY_DEFAULT, cancellable,
cancellable, callback, user_data); callback, user_data);
#endif #endif
#else #else
if (gst_soup_vtable.lib_version == 3) { if (gst_soup_vtable.lib_version == 3) {