[souphttpsrc] removed temporal patch for error event, when received unknown mime...
authorGilbok Lee <gilbok.lee@samsung.com>
Thu, 4 Apr 2013 07:32:40 +0000 (16:32 +0900)
committerGilbok Lee <gilbok.lee@samsung.com>
Thu, 4 Apr 2013 07:42:59 +0000 (16:42 +0900)
Change-Id: I2ddf720b3511f531fd05a8837446cbdd9f500396

ext/soup/gstsouphttpsrc.c

index a31746d..722e2f5 100644 (file)
@@ -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;