diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2014-10-01 23:12:30 +0530 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2014-10-14 09:37:00 +0200 |
commit | d41a0be89044fff0aa6d477518cd8ce3faefc04d (patch) | |
tree | ebb86de5510c52bb1eacbac1c6cd266a91d6b8a2 | |
parent | b74a2ad492c4921f05e955ffbe5134d91a050bea (diff) |
souphttpclientsink: Add some more useful debug logging
-rw-r--r-- | ext/soup/gstsouphttpclientsink.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/soup/gstsouphttpclientsink.c b/ext/soup/gstsouphttpclientsink.c index a1bfa1b74..190da58eb 100644 --- a/ext/soup/gstsouphttpclientsink.c +++ b/ext/soup/gstsouphttpclientsink.c @@ -639,6 +639,7 @@ send_message_locked (GstSoupHttpClientSink * souphttpsink) /* If the URI went away, drop all these buffers */ if (souphttpsink->location == NULL) { + GST_DEBUG_OBJECT (souphttpsink, "URI went away, dropping queued buffers"); free_buffer_list (souphttpsink->queued_buffers); souphttpsink->queued_buffers = NULL; return; @@ -685,6 +686,8 @@ send_message_locked (GstSoupHttpClientSink * souphttpsink) } if (n == 0) { + GST_DEBUG_OBJECT (souphttpsink, + "total size of buffers queued is 0, freeing everything"); free_buffer_list (souphttpsink->queued_buffers); souphttpsink->queued_buffers = NULL; g_object_unref (souphttpsink->message); @@ -763,6 +766,7 @@ gst_soup_http_client_sink_render (GstBaseSink * sink, GstBuffer * buffer) g_list_append (souphttpsink->queued_buffers, gst_buffer_ref (buffer)); if (wake) { + GST_DEBUG_OBJECT (souphttpsink, "setting callback for new buffers"); source = g_idle_source_new (); g_source_set_callback (source, (GSourceFunc) (send_message), souphttpsink, NULL); |