Patch: fix bs get_decoded_stream



	Hi,

	This is the first fix for regression caused by bodystruct support ;).
We were getting the tny_camel_bs_mime_part_get_decoded_stream stream in
eos position, instead of in a way we could start getting its
information.

	So now, we do a reset before returning it to caller.


-- 
José Dapena Paz <jdapena igalia com>
Igalia
diff --git a/libtinymail-camel/tny-camel-bs-mime-part.c b/libtinymail-camel/tny-camel-bs-mime-part.c
index 58ee384..9a72911 100644
--- a/libtinymail-camel/tny-camel-bs-mime-part.c
+++ b/libtinymail-camel/tny-camel-bs-mime-part.c
@@ -798,6 +798,7 @@ tny_camel_bs_mime_part_get_decoded_stream_default (TnyMimePart *self)
 {
 	TnyStream *retval = tny_camel_mem_stream_new ();
 	fetch_part (self, retval, FALSE);
+	tny_stream_reset (retval);
 	return retval;
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]