gint rc;
soup_message_headers_remove (src->msg->request_headers, "Range");
-#ifdef TIZEN_FEATURE_SOUP_MODIFICATION
+
/*[prasenjit.c]This changes are needed to enable Seekable Contents from server.
We have observed that , for few specific networks ( VODAFONE ) , without theabove headers ,
Youtube is sending non-seekable contents to the Client.
*/
- if (stop_offset != -1) {
-#else
- if (offset || stop_offset != -1) {
+#ifndef TIZEN_FEATURE_SOUP_MODIFICATION
+ if (offset || stop_offset != -1)
#endif
+ {
if (stop_offset != -1) {
rc = g_snprintf (buf, sizeof (buf), "bytes=%" G_GUINT64_FORMAT "-%"
- G_GUINT64_FORMAT, offset, stop_offset);
+ G_GUINT64_FORMAT, offset, stop_offset);
} else {
rc = g_snprintf (buf, sizeof (buf), "bytes=%" G_GUINT64_FORMAT "-",
- offset);
+ offset);
}
if (rc > sizeof (buf) || rc < 0)
return FALSE;
soup_message_headers_append (src->msg->request_headers, "Range", buf);
}
+
src->read_position = offset;
return TRUE;
}
if (src->cookie_jar)
soup_cookie_jar_add_cookie (src->cookie_jar, cookie_parsed);
- tmp_field = strtok (NULL, ";");
+ tmp_field = strtok_r (NULL, ";", &saveptr);
}
soup_uri_free (uri);
}