+2008-07-31 Jan Schmidt <jan.schmidt@sun.com>
+
+ * ext/soup/gstsouphttpsrc.c:
+ Don't throw an error when soup completes a msg with status
+ 'cancelled', as that indicates we cancelled a request while
+ shutting down or seeking, and it's not an error.
+ Fixes: #540300 again.
+
2008-07-28 Jan Schmidt <jan.schmidt@sun.com>
* configure.ac:
src->ret = GST_FLOW_CUSTOM_ERROR;
} else if (G_UNLIKELY (src->session_io_status !=
GST_SOUP_HTTP_SRC_SESSION_IO_STATUS_RUNNING)) {
- GST_ELEMENT_ERROR (src, RESOURCE, NOT_FOUND,
- ("%s", msg->reason_phrase),
- ("libsoup status code %d", msg->status_code));
+ if (msg->status_code != SOUP_STATUS_CANCELLED) {
+ GST_ELEMENT_ERROR (src, RESOURCE, NOT_FOUND,
+ ("%s", msg->reason_phrase),
+ ("libsoup status code %d", msg->status_code));
+ }
}
if (src->loop)
g_main_loop_quit (src->loop);