We have observed that , for few specific networks ( VODAFONE ) , without theabove headers ,
Youtube is sending non-seekable contents to the Client.
*/
- if (offset >=0 || stop_offset != -1) {
+ if (stop_offset != -1) {
#else
if (offset || stop_offset != -1) {
#endif
if (!g_ascii_strcasecmp(field_name, "Cookie")) {
SoupURI *uri = NULL;
SoupCookie *cookie_parsed = NULL;
+ gchar *saveptr = NULL;
if (strlen(field_content) > 0) {
gchar *tmp_field = NULL;
uri = soup_uri_new (src->location);
- tmp_field = strtok (field_content, ";");
+ tmp_field = strtok_r (field_content, ";", &saveptr);
while (tmp_field != NULL) {
GST_DEBUG_OBJECT (src, "field_content = %s", tmp_field);
gst_rtsp_message_unset (&message);
if (res != GST_RTSP_EINTR) {
#ifdef TIZEN_FEATURE_RTSP_MODIFICATION
- gst_rtspsrc_post_error_message ( src,
- GST_RTSPSRC_ERROR_SERVICE_UNAVAILABLE,"Could not handle server message.");
+ gst_rtspsrc_post_error_message ( src,
+ GST_RTSPSRC_ERROR_SERVICE_UNAVAILABLE,"Could not handle server message.");
#else
- GST_ELEMENT_ERROR (src, RESOURCE, WRITE, (NULL),
- ("Could not handle server message. (%s)", str));
+ GST_ELEMENT_ERROR (src, RESOURCE, WRITE, (NULL),
+ ("Could not handle server message. (%s)", str));
#endif
g_free (str);
ret = GST_FLOW_ERROR;