mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
tcpclientsrc: return FLUSHING when select() is canceled
https://bugzilla.gnome.org/show_bug.cgi?id=731567
This commit is contained in:
parent
593a52a656
commit
79cf59b7dd
1 changed files with 9 additions and 3 deletions
|
@ -276,10 +276,16 @@ done:
|
|||
|
||||
select_error:
|
||||
{
|
||||
if (g_error_matches (err, G_IO_ERROR, G_IO_ERROR_CANCELLED)) {
|
||||
GST_DEBUG_OBJECT (src, "Cancelled");
|
||||
ret = GST_FLOW_FLUSHING;
|
||||
} else {
|
||||
GST_ELEMENT_ERROR (src, RESOURCE, READ, (NULL),
|
||||
("Select failed: %s", err->message));
|
||||
ret = GST_FLOW_ERROR;
|
||||
}
|
||||
g_clear_error (&err);
|
||||
return GST_FLOW_ERROR;
|
||||
return ret;
|
||||
}
|
||||
get_available_error:
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue