mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-05 17:09:48 +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);
|
gchar *str = gst_rtsp_strresult (res);
|
||||||
|
|
||||||
GST_ELEMENT_ERROR (src, RESOURCE, WRITE, (NULL),
|
if (res != GST_RTSP_EINTR) {
|
||||||
("Could not send message. (%s)", str));
|
GST_ELEMENT_ERROR (src, RESOURCE, WRITE, (NULL),
|
||||||
|
("Could not send message. (%s)", str));
|
||||||
|
} else {
|
||||||
|
GST_WARNING_OBJECT (src, "send interrupted");
|
||||||
|
}
|
||||||
g_free (str);
|
g_free (str);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
@ -4434,8 +4438,12 @@ receive_error:
|
||||||
{
|
{
|
||||||
gchar *str = gst_rtsp_strresult (res);
|
gchar *str = gst_rtsp_strresult (res);
|
||||||
|
|
||||||
GST_ELEMENT_ERROR (src, RESOURCE, READ, (NULL),
|
if (res != GST_RTSP_EINTR) {
|
||||||
("Could not receive message. (%s)", str));
|
GST_ELEMENT_ERROR (src, RESOURCE, READ, (NULL),
|
||||||
|
("Could not receive message. (%s)", str));
|
||||||
|
} else {
|
||||||
|
GST_WARNING_OBJECT (src, "receive interrupted");
|
||||||
|
}
|
||||||
g_free (str);
|
g_free (str);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -5193,8 +5201,12 @@ send_error:
|
||||||
{
|
{
|
||||||
gchar *str = gst_rtsp_strresult (res);
|
gchar *str = gst_rtsp_strresult (res);
|
||||||
|
|
||||||
GST_ELEMENT_ERROR (src, RESOURCE, WRITE, (NULL),
|
if (res != GST_RTSP_EINTR) {
|
||||||
("Could not send message. (%s)", str));
|
GST_ELEMENT_ERROR (src, RESOURCE, WRITE, (NULL),
|
||||||
|
("Could not send message. (%s)", str));
|
||||||
|
} else {
|
||||||
|
GST_WARNING_OBJECT (src, "send interrupted");
|
||||||
|
}
|
||||||
g_free (str);
|
g_free (str);
|
||||||
goto cleanup_error;
|
goto cleanup_error;
|
||||||
}
|
}
|
||||||
|
@ -5512,8 +5524,12 @@ connect_failed:
|
||||||
{
|
{
|
||||||
gchar *str = gst_rtsp_strresult (res);
|
gchar *str = gst_rtsp_strresult (res);
|
||||||
|
|
||||||
GST_ELEMENT_ERROR (src, RESOURCE, OPEN_READ_WRITE, (NULL),
|
if (res != GST_RTSP_EINTR) {
|
||||||
("Failed to connect. (%s)", str));
|
GST_ELEMENT_ERROR (src, RESOURCE, OPEN_READ_WRITE, (NULL),
|
||||||
|
("Failed to connect. (%s)", str));
|
||||||
|
} else {
|
||||||
|
GST_WARNING_OBJECT (src, "connect interrupted");
|
||||||
|
}
|
||||||
g_free (str);
|
g_free (str);
|
||||||
goto cleanup_error;
|
goto cleanup_error;
|
||||||
}
|
}
|
||||||
|
@ -5530,7 +5546,6 @@ send_error:
|
||||||
{
|
{
|
||||||
/* Don't post a message - the rtsp_send method will have
|
/* Don't post a message - the rtsp_send method will have
|
||||||
* taken care of it because we passed NULL for the response code */
|
* taken care of it because we passed NULL for the response code */
|
||||||
|
|
||||||
goto cleanup_error;
|
goto cleanup_error;
|
||||||
}
|
}
|
||||||
methods_error:
|
methods_error:
|
||||||
|
@ -5728,8 +5743,12 @@ send_error:
|
||||||
gchar *str = gst_rtsp_strresult (res);
|
gchar *str = gst_rtsp_strresult (res);
|
||||||
|
|
||||||
gst_rtsp_message_unset (&request);
|
gst_rtsp_message_unset (&request);
|
||||||
GST_ELEMENT_ERROR (src, RESOURCE, WRITE, (NULL),
|
if (res != GST_RTSP_EINTR) {
|
||||||
("Could not send message. (%s)", str));
|
GST_ELEMENT_ERROR (src, RESOURCE, WRITE, (NULL),
|
||||||
|
("Could not send message. (%s)", str));
|
||||||
|
} else {
|
||||||
|
GST_WARNING_OBJECT (src, "TEARDOWN interrupted");
|
||||||
|
}
|
||||||
g_free (str);
|
g_free (str);
|
||||||
goto close;
|
goto close;
|
||||||
}
|
}
|
||||||
|
@ -6054,8 +6073,12 @@ send_error:
|
||||||
gchar *str = gst_rtsp_strresult (res);
|
gchar *str = gst_rtsp_strresult (res);
|
||||||
|
|
||||||
gst_rtsp_message_unset (&request);
|
gst_rtsp_message_unset (&request);
|
||||||
GST_ELEMENT_ERROR (src, RESOURCE, WRITE, (NULL),
|
if (res != GST_RTSP_EINTR) {
|
||||||
("Could not send message. (%s)", str));
|
GST_ELEMENT_ERROR (src, RESOURCE, WRITE, (NULL),
|
||||||
|
("Could not send message. (%s)", str));
|
||||||
|
} else {
|
||||||
|
GST_WARNING_OBJECT (src, "PLAY interrupted");
|
||||||
|
}
|
||||||
g_free (str);
|
g_free (str);
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
@ -6181,8 +6204,12 @@ send_error:
|
||||||
gchar *str = gst_rtsp_strresult (res);
|
gchar *str = gst_rtsp_strresult (res);
|
||||||
|
|
||||||
gst_rtsp_message_unset (&request);
|
gst_rtsp_message_unset (&request);
|
||||||
GST_ELEMENT_ERROR (src, RESOURCE, WRITE, (NULL),
|
if (res != GST_RTSP_EINTR) {
|
||||||
("Could not send message. (%s)", str));
|
GST_ELEMENT_ERROR (src, RESOURCE, WRITE, (NULL),
|
||||||
|
("Could not send message. (%s)", str));
|
||||||
|
} else {
|
||||||
|
GST_WARNING_OBJECT (src, "PAUSE interrupted");
|
||||||
|
}
|
||||||
g_free (str);
|
g_free (str);
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue