mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
souphttpsrc: log connection events at info level
https://bugzilla.gnome.org/show_bug.cgi?id=739305
This commit is contained in:
parent
6daa57868f
commit
1e03ffb820
1 changed files with 6 additions and 6 deletions
|
@ -718,7 +718,7 @@ static void
|
||||||
gst_soup_http_src_cancel_message (GstSoupHTTPSrc * src)
|
gst_soup_http_src_cancel_message (GstSoupHTTPSrc * src)
|
||||||
{
|
{
|
||||||
if (src->msg != NULL) {
|
if (src->msg != NULL) {
|
||||||
GST_DEBUG_OBJECT (src, "Cancelling message");
|
GST_INFO_OBJECT (src, "Cancelling message");
|
||||||
src->session_io_status = GST_SOUP_HTTP_SRC_SESSION_IO_STATUS_CANCELLED;
|
src->session_io_status = GST_SOUP_HTTP_SRC_SESSION_IO_STATUS_CANCELLED;
|
||||||
soup_session_cancel_message (src->session, src->msg, SOUP_STATUS_CANCELLED);
|
soup_session_cancel_message (src->session, src->msg, SOUP_STATUS_CANCELLED);
|
||||||
}
|
}
|
||||||
|
@ -1265,7 +1265,7 @@ gst_soup_http_src_finished_cb (SoupMessage * msg, GstSoupHTTPSrc * src)
|
||||||
GST_DEBUG_OBJECT (src, "finished, but not for current message");
|
GST_DEBUG_OBJECT (src, "finished, but not for current message");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
GST_DEBUG_OBJECT (src, "finished");
|
GST_INFO_OBJECT (src, "finished, io status: %d", src->session_io_status);
|
||||||
src->ret = GST_FLOW_EOS;
|
src->ret = GST_FLOW_EOS;
|
||||||
if (src->session_io_status == GST_SOUP_HTTP_SRC_SESSION_IO_STATUS_CANCELLED) {
|
if (src->session_io_status == GST_SOUP_HTTP_SRC_SESSION_IO_STATUS_CANCELLED) {
|
||||||
/* gst_soup_http_src_cancel_message() triggered this; probably a seek
|
/* gst_soup_http_src_cancel_message() triggered this; probably a seek
|
||||||
|
@ -1453,7 +1453,7 @@ gst_soup_http_src_response_cb (SoupSession * session, SoupMessage * msg,
|
||||||
/* Ignore redirections. */
|
/* Ignore redirections. */
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
GST_DEBUG_OBJECT (src, "got response %d: %s", msg->status_code,
|
GST_INFO_OBJECT (src, "got response %d: %s", msg->status_code,
|
||||||
msg->reason_phrase);
|
msg->reason_phrase);
|
||||||
if (src->session_io_status == GST_SOUP_HTTP_SRC_SESSION_IO_STATUS_RUNNING &&
|
if (src->session_io_status == GST_SOUP_HTTP_SRC_SESSION_IO_STATUS_RUNNING &&
|
||||||
src->read_position > 0 && (src->have_size
|
src->read_position > 0 && (src->have_size
|
||||||
|
@ -1649,12 +1649,12 @@ gst_soup_http_src_do_request (GstSoupHTTPSrc * src, const gchar * method,
|
||||||
src->outbuf = outbuf;
|
src->outbuf = outbuf;
|
||||||
do {
|
do {
|
||||||
if (src->interrupted) {
|
if (src->interrupted) {
|
||||||
GST_DEBUG_OBJECT (src, "interrupted");
|
GST_INFO_OBJECT (src, "interrupted");
|
||||||
src->ret = GST_FLOW_FLUSHING;
|
src->ret = GST_FLOW_FLUSHING;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (src->retry) {
|
if (src->retry) {
|
||||||
GST_DEBUG_OBJECT (src, "Reconnecting");
|
GST_INFO_OBJECT (src, "Reconnecting");
|
||||||
if (!gst_soup_http_src_build_message (src, method)) {
|
if (!gst_soup_http_src_build_message (src, method)) {
|
||||||
return GST_FLOW_ERROR;
|
return GST_FLOW_ERROR;
|
||||||
}
|
}
|
||||||
|
@ -1668,7 +1668,7 @@ gst_soup_http_src_do_request (GstSoupHTTPSrc * src, const gchar * method,
|
||||||
|
|
||||||
switch (src->session_io_status) {
|
switch (src->session_io_status) {
|
||||||
case GST_SOUP_HTTP_SRC_SESSION_IO_STATUS_IDLE:
|
case GST_SOUP_HTTP_SRC_SESSION_IO_STATUS_IDLE:
|
||||||
GST_DEBUG_OBJECT (src, "Queueing connection request");
|
GST_INFO_OBJECT (src, "Queueing connection request");
|
||||||
gst_soup_http_src_queue_message (src);
|
gst_soup_http_src_queue_message (src);
|
||||||
break;
|
break;
|
||||||
case GST_SOUP_HTTP_SRC_SESSION_IO_STATUS_QUEUED:
|
case GST_SOUP_HTTP_SRC_SESSION_IO_STATUS_QUEUED:
|
||||||
|
|
Loading…
Reference in a new issue