Skip to content
Snippets Groups Projects
Commit 7a8b931a authored by Wim Taymans's avatar Wim Taymans Committed by Wim Taymans
Browse files

media: also count active TCP connections

parent fab65082
No related branches found
No related tags found
No related merge requests found
...@@ -1342,9 +1342,11 @@ gst_rtsp_media_set_state (GstRTSPMedia *media, GstState state, GArray *transport ...@@ -1342,9 +1342,11 @@ gst_rtsp_media_set_state (GstRTSPMedia *media, GstState state, GArray *transport
if (add) { if (add) {
g_message ("adding TCP %s", trans->destination); g_message ("adding TCP %s", trans->destination);
stream->transports = g_list_prepend (stream->transports, tr); stream->transports = g_list_prepend (stream->transports, tr);
media->active++;
} else if (remove) { } else if (remove) {
g_message ("removing TCP %s", trans->destination); g_message ("removing TCP %s", trans->destination);
stream->transports = g_list_remove (stream->transports, tr); stream->transports = g_list_remove (stream->transports, tr);
media->active--;
} }
break; break;
default: default:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment