souphttpclientsink: Fix lifetime of stream headers and queued buffers
authorNirbheek Chauhan <nirbheek@centricular.com>
Thu, 2 Oct 2014 08:56:08 +0000 (14:26 +0530)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 2 Oct 2014 09:47:36 +0000 (12:47 +0300)
commitf35f3ccf7c9d659c070a636dbf62ce7d4127053b
tree5d37e8bb090793a0d3d67db417449d7353978add
parente1d275cfec4c1caae7885857ce4ec35bade01dd6
souphttpclientsink: Fix lifetime of stream headers and queued buffers

Stream headers are updated whenever ::set_caps is called, so we can't assume
they'll be valid before the message body is written out. We *can* assume that
for queued buffers, but SOUP_MEMORY_STATIC is still wrong for those.

Also, add some debug logging for stream header interactions.

https://bugzilla.gnome.org/show_bug.cgi?id=737771
ext/soup/gstsouphttpclientsink.c