souphttpsrc: Log any error returned by soup_session_send()
authorRobert Tiemann <rtie@gmx.de>
Tue, 6 Aug 2019 14:27:37 +0000 (16:27 +0200)
committerSebastian Dröge <slomo@coaxion.net>
Wed, 7 Aug 2019 07:32:09 +0000 (07:32 +0000)
ext/soup/gstsouphttpsrc.c

index bb87412..a79a489 100644 (file)
@@ -1536,6 +1536,9 @@ gst_soup_http_src_send_message (GstSoupHTTPSrc * src)
   src->input_stream =
       soup_session_send (src->session, src->msg, src->cancellable, &error);
 
+  if (error)
+    GST_DEBUG_OBJECT (src, "Sending message failed: %s", error->message);
+
   if (g_cancellable_is_cancelled (src->cancellable)) {
     ret = GST_FLOW_FLUSHING;
     goto done;