mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-09 05:38:58 +00:00
multiudpsink: post error when something goes wrong
This commit is contained in:
parent
15c2b997e9
commit
e8d951ed68
1 changed files with 7 additions and 2 deletions
|
@ -541,14 +541,19 @@ no_data:
|
||||||
}
|
}
|
||||||
send_error:
|
send_error:
|
||||||
{
|
{
|
||||||
GstFlowReturn res = GST_FLOW_ERROR;
|
GstFlowReturn res;
|
||||||
|
|
||||||
g_mutex_unlock (&sink->client_lock);
|
g_mutex_unlock (&sink->client_lock);
|
||||||
GST_DEBUG ("got send error %s", err->message);
|
GST_DEBUG ("got send error %s", err->message);
|
||||||
|
|
||||||
if (g_error_matches (err, G_IO_ERROR, G_IO_ERROR_CANCELLED))
|
if (g_error_matches (err, G_IO_ERROR, G_IO_ERROR_CANCELLED))
|
||||||
res = GST_FLOW_FLUSHING;
|
res = GST_FLOW_FLUSHING;
|
||||||
|
else {
|
||||||
|
res = GST_FLOW_ERROR;
|
||||||
|
GST_ELEMENT_ERROR (sink, RESOURCE, SETTINGS, (NULL),
|
||||||
|
("Error sending UDP packet: %s",
|
||||||
|
err ? err->message : "unknown reason"));
|
||||||
|
}
|
||||||
g_clear_error (&err);
|
g_clear_error (&err);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue