souphttpsrc: soup_session_new_with_options() can't fail with NULL

So don't check for it.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1594>
This commit is contained in:
Sebastian Dröge 2022-01-28 15:30:56 +02:00
parent 40b073e7bd
commit 165be69017

View 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) {