Skip to content

rtsp-stream: Remove list handling for tr_cache

Since the only transport that is possible in tr_cache list is GST_RTSP_LOWER_TRANS_TCP it's unnecessary to have a list.

This patch also fix another problem. Since there sometimes are recursive behavior. send_tcp_messages ends upp in on_message that calls send_tcp_messages and so on, there can be a problem when returning from a call to send_tcp_messgages when the transport have been removed. Then send_tcp_messages is changing in the tr_cache list and returning back to previous call of send_tcp_messages that are iterating the same list that just been changed.

Merge request reports