diff options
author | Jeon Hee Chul <heechul.jeon@samsung.com> | 2013-05-02 18:45:25 +0900 |
---|---|---|
committer | Jeon Hee Chul <heechul.jeon@samsung.com> | 2013-05-02 18:45:25 +0900 |
commit | 995dc1f53d8e57364bd6aeed975b0bedc52c54e0 (patch) | |
tree | 2b3af2d7141aa00283786d2c0f911bbedf41120b /ext | |
parent | 00e6048e8863694473f41a20cd7fbf197a137498 (diff) | |
download | gst-plugins-good0.10-tizen_2.1.tar.gz gst-plugins-good0.10-tizen_2.1.tar.bz2 gst-plugins-good0.10-tizen_2.1.zip |
[N_SE-36752] Fix error posting from souphttsrc when normal case.submit/tizen_2.1/20130514.052751tizen_2.1
Change-Id: I453e359d4618066f8e121c178fd0473d737cd2aa
Diffstat (limited to 'ext')
-rwxr-xr-x | ext/soup/gstsouphttpsrc.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/ext/soup/gstsouphttpsrc.c b/ext/soup/gstsouphttpsrc.c index 907cd13..c13cbbf 100755 --- a/ext/soup/gstsouphttpsrc.c +++ b/ext/soup/gstsouphttpsrc.c @@ -1094,10 +1094,13 @@ 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)) { - /* FIXME: reason_phrase is not translated, add proper error message */ - GST_ELEMENT_ERROR (src, RESOURCE, NOT_FOUND, - ("%s", msg->reason_phrase), - ("libsoup status code %d", msg->status_code)); + + if (msg->status_code != SOUP_STATUS_OK){ + /* FIXME: reason_phrase is not translated, add proper error message */ + 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); |