souphttpsrc: refactor to use Soup's sync API
authorThiago Santos <thiagoss@osg.samsung.com>
Fri, 13 May 2016 13:17:33 +0000 (10:17 -0300)
committerThiago Santos <thiagoss@osg.samsung.com>
Sat, 14 May 2016 11:40:12 +0000 (08:40 -0300)
commit183695c61a54f1a9628e5ef7dd951e904b29362a
tree01c2c4196c6c46461c045866370e6b1c0b551f60
parent79e52b9f817db4b53ab8d51e141e93d838d57d7b
souphttpsrc: refactor to use Soup's sync API

Replace the async API with the sync API to remove all the extra mainloop
and context handling. Currently it blocks reading until 'blocksize'
bytes are available but that can be improved by using:

https://developer.gnome.org/gio/unstable/GPollableInputStream.html#g-pollable-input-stream-read-nonblocking

https://bugzilla.gnome.org/show_bug.cgi?id=693911
ext/soup/gstsouphttpsrc.c
ext/soup/gstsouphttpsrc.h