souphttpclientsink: Free queued buffers in ::reset
authorNirbheek Chauhan <nirbheek@centricular.com>
Wed, 1 Oct 2014 17:35:03 +0000 (23:05 +0530)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 2 Oct 2014 06:48:27 +0000 (09:48 +0300)
commit745d49731810d774463e72b03e759092e2b2e8b7
treef36b73218acb14d2dba30a4d24d8eee71de90898
parent1a2adf512346fecea04df50c385f74a458323e70
souphttpclientsink: Free queued buffers in ::reset

::render sets a new callback for writing out new buffers only if there aren't
already buffers queued for writing with a previously-scheduled callback.
However, if the previously-scheduled callback is interrupted by a state change
(either manually or due to an error) and there are still buffers in the queue,
restarting the pipeline will result in buffers being queued forever, and no
callbacks will ever be scheduled, and no buffers will be written out.

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