summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilbok Lee <gilbok.lee@samsung.com>2013-04-04 16:32:40 +0900
committerGilbok Lee <gilbok.lee@samsung.com>2013-04-04 16:42:59 +0900
commit0fa9f1d99b501496eb68ff31350979da5c5f0f95 (patch)
tree95fd64737c767a60ac2718726d4bf4f1bed79802
parent448a0800cf8654e0824c2f04496c7e63fbae4031 (diff)
downloadgst-plugins-good0.10-0fa9f1d99b501496eb68ff31350979da5c5f0f95.tar.gz
gst-plugins-good0.10-0fa9f1d99b501496eb68ff31350979da5c5f0f95.tar.bz2
gst-plugins-good0.10-0fa9f1d99b501496eb68ff31350979da5c5f0f95.zip
[souphttpsrc] removed temporal patch for error event, when received unknown mime-type during load media contents
Change-Id: I2ddf720b3511f531fd05a8837446cbdd9f500396
-rw-r--r--ext/soup/gstsouphttpsrc.c14
1 files changed, 0 insertions, 14 deletions
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)
&params)) != 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;