From: Gilbok Lee Date: Thu, 4 Apr 2013 07:32:40 +0000 (+0900) Subject: [souphttpsrc] removed temporal patch for error event, when received unknown mime... X-Git-Tag: accepted/tizen/20130610.170142~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0fa9f1d99b501496eb68ff31350979da5c5f0f95;p=profile%2Fmobile%2Fgst-plugins-good0.10.git [souphttpsrc] removed temporal patch for error event, when received unknown mime-type during load media contents Change-Id: I2ddf720b3511f531fd05a8837446cbdd9f500396 --- diff --git a/ext/soup/gstsouphttpsrc.c b/ext/soup/gstsouphttpsrc.c index a31746d..722e2f5 100644 --- a/ext/soup/gstsouphttpsrc.c +++ b/ext/soup/gstsouphttpsrc.c @@ -803,10 +803,6 @@ gst_soup_http_src_got_headers_cb (SoupMessage * msg, GstSoupHTTPSrc * src) goffset start = 0, end = 0, total_length = 0; #endif GHashTable *params = NULL; -#ifdef GST_EXT_SOUP_MODIFICATION - gint idx = 0; - const char* blackTypes[] = {"application/xml", "text/html"}; -#endif GST_DEBUG_OBJECT (src, "got headers:"); soup_message_headers_foreach (msg->response_headers, @@ -892,16 +888,6 @@ gst_soup_http_src_got_headers_cb (SoupMessage * msg, GstSoupHTTPSrc * src) ¶ms)) != NULL) { GST_DEBUG_OBJECT (src, "Content-Type: %s", value); -#ifdef GST_EXT_SOUP_MODIFICATION - for (idx = 0; idx < (sizeof(blackTypes) / sizeof(char *)); idx++) { - if (!g_ascii_strcasecmp(value, blackTypes[idx])) { - GST_DEBUG_OBJECT (src, "blackType: %s", blackTypes[idx]); - GST_ELEMENT_ERROR(src, STREAM, WRONG_TYPE, (0), (0)); - src->ret = GST_FLOW_ERROR; - } - } -#endif - if (g_ascii_strcasecmp (value, "audio/L16") == 0) { gint channels = 2; gint rate = 44100;