GNOME Bugzilla – Bug 500099
Fixes and improvements to souphttpsrc
Last modified: 2007-11-29 10:49:22 UTC
Please describe the problem: The async HTTP source added in bug 497020 had some issues: - GMainContext object is leaked, - libsoup does not support async client operation prior to version 2.2.104, - libsoup < 2.2.104 has some leak issues, - unlock() is not implemented. Steps to reproduce: Actual results: Expected results: Does this happen every time? Other information:
Created attachment 99748 [details] [review] Various fixes and improvements. This patch to CVS HEAD also: - fixes some source formatting inconsistency, - picks up the size from the Content-Length header and emits a duration message.
Patch by: Wouter Cloetens <wouter at mind dot be> * configure.ac: Bump libsoup requirement as libsoup does not support async client operation prior to version 2.2.104 and it has some leaks. * ext/soup/gstsouphttpsrc.c: (gst_souphttp_src_class_init), (gst_souphttp_src_init), (gst_souphttp_src_dispose), (gst_souphttp_src_set_property), (gst_souphttp_src_create), (gst_souphttp_src_start), (gst_souphttp_src_stop), (gst_souphttp_src_unlock), (gst_souphttp_src_unlock_stop), (gst_souphttp_src_get_size), (soup_got_headers), (soup_got_body), (soup_finished), (soup_got_chunk), (soup_response), (soup_session_close): * ext/soup/gstsouphttpsrc.h: Implement unlock(). Picks up the size from the Content-Length header and emit a duration message. Don't leak the GMainContext object. Fixes #500099.