souphttpsrc: soup_session_new_with_options() can't fail with NULL
authorSebastian Dröge <sebastian@centricular.com>
Fri, 28 Jan 2022 13:30:56 +0000 (15:30 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Fri, 28 Jan 2022 13:30:56 +0000 (15:30 +0200)
So don't check for it.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1594>

subprojects/gst-plugins-good/ext/soup/gstsouphttpsrc.c

index ec44d48..ceb76a2 100644 (file)
@@ -1002,10 +1002,7 @@ thread_func (gpointer user_data)
       /* Unset the limit the number of maximum allowed connections */
       "max-conns", src->session_is_shared ? G_MAXINT : 10,
       "max-conns-per-host", src->session_is_shared ? G_MAXINT : 2, NULL);
-
-  if (!src->session->session) {
-    return NULL;
-  }
+  g_assert (session->session);
 
   if (gst_soup_loader_get_api_version () == 3) {
     if (src->proxy != NULL) {