From: Jan Schmidt Date: Thu, 31 Jul 2008 21:26:48 +0000 (+0000) Subject: ext/soup/gstsouphttpsrc.c: Don't throw an error when soup completes a msg with status... X-Git-Tag: 1.19.3~509^2~11105 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0d262638e3a3a910d7e7cf2942117c4e15bb2dda;p=platform%2Fupstream%2Fgstreamer.git ext/soup/gstsouphttpsrc.c: Don't throw an error when soup completes a msg with status 'cancelled', as that indicates ... Original commit message from CVS: * 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. --- diff --git a/ChangeLog b/ChangeLog index dc24944..f7b239d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2008-07-31 Jan Schmidt + + * 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 * configure.ac: diff --git a/common b/common index e798798..d70ca17 160000 --- a/common +++ b/common @@ -1 +1 @@ -Subproject commit e79879859bc866545379eb77e1378a906dc30ebf +Subproject commit d70ca17ae6fbe6020996e4567275d5e14972ed45 diff --git a/ext/soup/gstsouphttpsrc.c b/ext/soup/gstsouphttpsrc.c index d9324f9..48360ab 100644 --- a/ext/soup/gstsouphttpsrc.c +++ b/ext/soup/gstsouphttpsrc.c @@ -703,9 +703,11 @@ gst_soup_http_src_finished_cb (SoupMessage * msg, GstSoupHTTPSrc * src) 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);