mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
rtspsrc: don't post errors when interrupting
This commit is contained in:
parent
220e47adcf
commit
852c6e11cd
1 changed files with 42 additions and 15 deletions
|
@ -4413,8 +4413,12 @@ send_error:
|
|||
{
|
||||
gchar *str = gst_rtsp_strresult (res);
|
||||
|
||||
if (res != GST_RTSP_EINTR) {
|
||||
GST_ELEMENT_ERROR (src, RESOURCE, WRITE, (NULL),
|
||||
("Could not send message. (%s)", str));
|
||||
} else {
|
||||
GST_WARNING_OBJECT (src, "send interrupted");
|
||||
}
|
||||
g_free (str);
|
||||
return res;
|
||||
}
|
||||
|
@ -4434,8 +4438,12 @@ receive_error:
|
|||
{
|
||||
gchar *str = gst_rtsp_strresult (res);
|
||||
|
||||
if (res != GST_RTSP_EINTR) {
|
||||
GST_ELEMENT_ERROR (src, RESOURCE, READ, (NULL),
|
||||
("Could not receive message. (%s)", str));
|
||||
} else {
|
||||
GST_WARNING_OBJECT (src, "receive interrupted");
|
||||
}
|
||||
g_free (str);
|
||||
break;
|
||||
}
|
||||
|
@ -5193,8 +5201,12 @@ send_error:
|
|||
{
|
||||
gchar *str = gst_rtsp_strresult (res);
|
||||
|
||||
if (res != GST_RTSP_EINTR) {
|
||||
GST_ELEMENT_ERROR (src, RESOURCE, WRITE, (NULL),
|
||||
("Could not send message. (%s)", str));
|
||||
} else {
|
||||
GST_WARNING_OBJECT (src, "send interrupted");
|
||||
}
|
||||
g_free (str);
|
||||
goto cleanup_error;
|
||||
}
|
||||
|
@ -5512,8 +5524,12 @@ connect_failed:
|
|||
{
|
||||
gchar *str = gst_rtsp_strresult (res);
|
||||
|
||||
if (res != GST_RTSP_EINTR) {
|
||||
GST_ELEMENT_ERROR (src, RESOURCE, OPEN_READ_WRITE, (NULL),
|
||||
("Failed to connect. (%s)", str));
|
||||
} else {
|
||||
GST_WARNING_OBJECT (src, "connect interrupted");
|
||||
}
|
||||
g_free (str);
|
||||
goto cleanup_error;
|
||||
}
|
||||
|
@ -5530,7 +5546,6 @@ send_error:
|
|||
{
|
||||
/* Don't post a message - the rtsp_send method will have
|
||||
* taken care of it because we passed NULL for the response code */
|
||||
|
||||
goto cleanup_error;
|
||||
}
|
||||
methods_error:
|
||||
|
@ -5728,8 +5743,12 @@ send_error:
|
|||
gchar *str = gst_rtsp_strresult (res);
|
||||
|
||||
gst_rtsp_message_unset (&request);
|
||||
if (res != GST_RTSP_EINTR) {
|
||||
GST_ELEMENT_ERROR (src, RESOURCE, WRITE, (NULL),
|
||||
("Could not send message. (%s)", str));
|
||||
} else {
|
||||
GST_WARNING_OBJECT (src, "TEARDOWN interrupted");
|
||||
}
|
||||
g_free (str);
|
||||
goto close;
|
||||
}
|
||||
|
@ -6054,8 +6073,12 @@ send_error:
|
|||
gchar *str = gst_rtsp_strresult (res);
|
||||
|
||||
gst_rtsp_message_unset (&request);
|
||||
if (res != GST_RTSP_EINTR) {
|
||||
GST_ELEMENT_ERROR (src, RESOURCE, WRITE, (NULL),
|
||||
("Could not send message. (%s)", str));
|
||||
} else {
|
||||
GST_WARNING_OBJECT (src, "PLAY interrupted");
|
||||
}
|
||||
g_free (str);
|
||||
goto done;
|
||||
}
|
||||
|
@ -6181,8 +6204,12 @@ send_error:
|
|||
gchar *str = gst_rtsp_strresult (res);
|
||||
|
||||
gst_rtsp_message_unset (&request);
|
||||
if (res != GST_RTSP_EINTR) {
|
||||
GST_ELEMENT_ERROR (src, RESOURCE, WRITE, (NULL),
|
||||
("Could not send message. (%s)", str));
|
||||
} else {
|
||||
GST_WARNING_OBJECT (src, "PAUSE interrupted");
|
||||
}
|
||||
g_free (str);
|
||||
goto done;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue