[Bug 792664] souphttpsrc: Should send "Range" when offset is 0
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Sat Jan 20 23:46:30 UTC 2018
https://bugzilla.gnome.org/show_bug.cgi?id=792664
--- Comment #5 from Paul Kim <paul.hyunil at lge.com> ---
Seek function is not working with LGE TVs because when "Range" field is not
included in request header, "freevideo served by mod_h264_streaming" file
header is transferred from serverside. However, when "Range" filed is included,
"freevideo served by mod_h264_streaming" is not included in the mp4 file. Thus,
the decoder can`t decode normally.
The relevent code of ffmpeg is found
https://github.com/FFmpeg/FFmpeg/blob/cbbb2067341d7c2d98f560f81c6fb103af33a490/libavformat/http.c
// Note: we send this on purpose even when s->off is 0 when we're probing,
// since it allows us to detect more reliably if a (non-conforming)
// server supports seeking by analysing the reply headers.
if (!has_header(s->headers, "\r\nRange: ") && !post && (s->off > 0 ||
s->end_off || s->seekable == -1)) {
len += av_strlcatf(headers + len, sizeof(headers) - len,
"Range: bytes=%"PRIu64"-", s->off);
if (s->end_off)
len += av_strlcatf(headers + len, sizeof(headers) - len,
"%"PRId64, s->end_off - 1);
len += av_strlcpy(headers + len, "\r\n",
sizeof(headers) - len);
}
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list