mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-11 02:24:13 +00:00
media: also count active TCP connections
This commit is contained in:
parent
fab65082da
commit
7a8b931a83
1 changed files with 2 additions and 0 deletions
|
@ -1342,9 +1342,11 @@ gst_rtsp_media_set_state (GstRTSPMedia *media, GstState state, GArray *transport
|
|||
if (add) {
|
||||
g_message ("adding TCP %s", trans->destination);
|
||||
stream->transports = g_list_prepend (stream->transports, tr);
|
||||
media->active++;
|
||||
} else if (remove) {
|
||||
g_message ("removing TCP %s", trans->destination);
|
||||
stream->transports = g_list_remove (stream->transports, tr);
|
||||
media->active--;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue