mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
multiudpsink: Return FLUSHING instead of ERROR on unlock
If the base class asks multiudpsink to unlock, then it should return FLUSHING, not ERROR
This commit is contained in:
parent
fa86bf26df
commit
b4ff570532
1 changed files with 7 additions and 1 deletions
|
@ -537,10 +537,16 @@ no_data:
|
|||
}
|
||||
send_error:
|
||||
{
|
||||
GstFlowReturn res = GST_FLOW_ERROR;
|
||||
|
||||
g_mutex_unlock (&sink->client_lock);
|
||||
GST_DEBUG ("got send error %s", err->message);
|
||||
|
||||
if (g_error_matches (err, G_IO_ERROR, G_IO_ERROR_CANCELLED))
|
||||
res = GST_FLOW_FLUSHING;
|
||||
|
||||
g_clear_error (&err);
|
||||
return GST_FLOW_ERROR;
|
||||
return res;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue