mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
rtspconnection: Fix potential deadlock caused by blocking read forever
Reset the connection "may_cancel" property to avoid a potential deadlock if there is no data to read and the socket stays blocked forever. https://bugzilla.gnome.org/show_bug.cgi?id=768249
This commit is contained in:
parent
9144a787df
commit
7960bc0380
1 changed files with 2 additions and 0 deletions
|
@ -2161,11 +2161,13 @@ build_next (GstRTSPBuilder * builder, GstRTSPMessage * message,
|
|||
}
|
||||
}
|
||||
done:
|
||||
conn->may_cancel = TRUE;
|
||||
return res;
|
||||
|
||||
/* ERRORS */
|
||||
invalid_body_len:
|
||||
{
|
||||
conn->may_cancel = TRUE;
|
||||
GST_DEBUG ("could not allocate body");
|
||||
return GST_RTSP_ERROR;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue