Skip to content

rtspconnection: Only reset timeout when socket is unused

rtspconnection: Only reset timeout when socket is unused

After sending or retrieving data, gstrtspconnection resets the socket's timeout to 0 (infinite). This could cause problems if sending and receiving at the same time. For example, if RTCP data is sent from the streaming thread while gstrtspsrc is already retrieving data.

With this patch, timeout is only reset to 0 if there is no other thread using the socket.

Edited by Tobias Ronge

Merge request reports