mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
souphttpsrc: Retry connection if we're finished before the content size only if we actually have a content size
https://bugzilla.gnome.org/show_bug.cgi?id=722185
This commit is contained in:
parent
436d41fa8e
commit
9cac68709a
1 changed files with 3 additions and 2 deletions
|
@ -962,7 +962,7 @@ gst_soup_http_src_finished_cb (SoupMessage * msg, GstSoupHTTPSrc * src)
|
|||
* was complete. Do nothing */
|
||||
} else if (src->session_io_status ==
|
||||
GST_SOUP_HTTP_SRC_SESSION_IO_STATUS_RUNNING && src->read_position > 0 &&
|
||||
(!src->have_size || src->read_position < src->content_size)) {
|
||||
(src->have_size && src->read_position < src->content_size)) {
|
||||
/* The server disconnected while streaming. Reconnect and seeking to the
|
||||
* last location. */
|
||||
src->retry = TRUE;
|
||||
|
@ -1127,7 +1127,8 @@ gst_soup_http_src_response_cb (SoupSession * session, SoupMessage * msg,
|
|||
GST_DEBUG_OBJECT (src, "got response %d: %s", msg->status_code,
|
||||
msg->reason_phrase);
|
||||
if (src->session_io_status == GST_SOUP_HTTP_SRC_SESSION_IO_STATUS_RUNNING &&
|
||||
src->read_position > 0) {
|
||||
src->read_position > 0 && (src->have_size
|
||||
&& src->read_position < src->content_size)) {
|
||||
/* The server disconnected while streaming. Reconnect and seeking to the
|
||||
* last location. */
|
||||
src->retry = TRUE;
|
||||
|
|
Loading…
Reference in a new issue