summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWouter Cloetens <wouter@mind.be>2008-02-06 11:07:47 +0000
committerSebastian Dröge <slomo@circular-chaos.org>2008-02-06 11:07:47 +0000
commitb830c4bd7db3e49754c66e6b6c9ba6428af63573 (patch)
tree6b36758c389be8e3913afe1d4edb835a140094de
parent30f55f67f44b0039a82dc69b499fc24ce6931dfd (diff)
downloadgst-plugins-bad-b830c4bd7db3e49754c66e6b6c9ba6428af63573.tar.gz
gst-plugins-bad-b830c4bd7db3e49754c66e6b6c9ba6428af63573.tar.bz2
gst-plugins-bad-b830c4bd7db3e49754c66e6b6c9ba6428af63573.zip
ext/soup/gstsouphttpsrc.c: Fix memory leak and improve debugging a bit.
Original commit message from CVS: Patch by: Wouter Cloetens <wouter at mind dot be> * ext/soup/gstsouphttpsrc.c: (gst_soup_http_src_got_chunk_cb), (gst_soup_http_src_create): Fix memory leak and improve debugging a bit.
-rw-r--r--ChangeLog8
-rw-r--r--ext/soup/gstsouphttpsrc.c4
2 files changed, 10 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index ed0b806b..38e4fd1a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-02-06 Sebastian Dröge <slomo@circular-chaos.org>
+
+ Patch by: Wouter Cloetens <wouter at mind dot be>
+
+ * ext/soup/gstsouphttpsrc.c: (gst_soup_http_src_got_chunk_cb),
+ (gst_soup_http_src_create):
+ Fix memory leak and improve debugging a bit.
+
2008-02-05 Edgard Lima <edgard.lima@indt.org.br>
* ext/metadata/metadata_mapping.htm:
diff --git a/ext/soup/gstsouphttpsrc.c b/ext/soup/gstsouphttpsrc.c
index c7a97e64..86e6aca9 100644
--- a/ext/soup/gstsouphttpsrc.c
+++ b/ext/soup/gstsouphttpsrc.c
@@ -677,7 +677,7 @@ gst_soup_http_src_got_chunk_cb (SoupMessage * msg, SoupBuffer * chunk,
basesrc = GST_BASE_SRC_CAST (src);
data = chunk->data;
length = chunk->length;
- GST_DEBUG_OBJECT (src, "got chunk of %d bytes", length);
+ GST_DEBUG_OBJECT (src, "got chunk of %" G_GSIZE_FORMAT " bytes", length);
/* Create the buffer. */
src->ret = gst_pad_alloc_buffer (GST_BASE_SRC_PAD (basesrc),
@@ -807,7 +807,7 @@ gst_soup_http_src_create (GstPushSrc * psrc, GstBuffer ** outbuf)
g_signal_connect (src->msg, "got_chunk",
G_CALLBACK (gst_soup_http_src_got_chunk_cb), src);
soup_message_set_flags (src->msg, SOUP_MESSAGE_OVERWRITE_CHUNKS |
- src->automatic_redirect ? 0 : SOUP_MESSAGE_NO_REDIRECT);
+ (src->automatic_redirect ? 0 : SOUP_MESSAGE_NO_REDIRECT));
gst_soup_http_src_add_range_header (src, src->request_position);
}