souphttpsrc: Don't abort all pending operations on the session if shutting down a...
authorSebastian Dröge <sebastian@centricular.com>
Fri, 28 Jan 2022 13:31:55 +0000 (15:31 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Fri, 28 Jan 2022 13:31:55 +0000 (15:31 +0200)
Only do it for a non-shared session. Other sources would otherwise get
their requests cancelled unexpectedly.

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

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

index 48b8ad4..09f535c 100644 (file)
@@ -1212,7 +1212,7 @@ _session_close_cb (gpointer user_data)
     g_clear_object (&src->msg);
   }
 
-  if (src->session_is_shared)
+  if (!src->session_is_shared)
     _soup_session_abort (src->session->session);
 
   /* there may be multiple of this callback attached to the session,