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,
¶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;