[Bug 773509] souphttpsrc: connection loss / reconnect issues
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Wed Oct 26 14:46:53 UTC 2016
https://bugzilla.gnome.org/show_bug.cgi?id=773509
--- Comment #14 from Michael Olbrich <m.olbrich at pengutronix.de> ---
I think there is a problem in the way we handle the GMainContext. When the
error occurs, then gst_soup_http_src_wait_for_data() has not been called for
>30 Seconds. With the change below, the problems goes away. I think not calling
g_main_context_iteration() for a long time confuses the timeout calculation.
@@ -1610,6 +1612,7 @@ gst_soup_http_src_read_buffer (GstSoupHTTPSrc * src,
GstBuffer ** outbuf)
if (src->has_pollable_interface) {
while (1) {
+ g_main_context_iteration (src->poll_context, FALSE);
read_bytes =
g_pollable_input_stream_read_nonblocking ((GPollableInputStream *)
src->input_stream, mapinfo.data, mapinfo.size, src->cancellable,
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list