Browse Source

TT#14008 don't try to update kernel stats for no-kernel streams

Set NO_KERNEL_SUPPORT when we don't actually kernelise the stream, and
use that flag when trying to pull stream stats.

probably closes #1337

Change-Id: I46af55e353d87c5afdda3c106d1f3470273105bf
pull/1373/head
Richard Fuchs 4 years ago
parent
commit
702dd9bb13
1 changed files with 10 additions and 7 deletions
  1. +10
    -7
      daemon/media_socket.c

+ 10
- 7
daemon/media_socket.c View File

@ -1330,13 +1330,14 @@ void kernelize(struct packet_stream *stream) {
}
}
if (reti.local.family) {
kernel_add_stream(&reti);
struct rtpengine_destination_info *redi;
while ((redi = g_queue_pop_head(&outputs))) {
kernel_add_destination(redi);
g_slice_free1(sizeof(*redi), redi);
}
if (!reti.local.family)
goto no_kernel;
kernel_add_stream(&reti);
struct rtpengine_destination_info *redi;
while ((redi = g_queue_pop_head(&outputs))) {
kernel_add_destination(redi);
g_slice_free1(sizeof(*redi), redi);
}
PS_SET(stream, KERNELIZED);
@ -1482,6 +1483,8 @@ void media_update_stats(struct call_media *m) {
continue;
if (!PS_ISSET(ps, KERNELIZED))
continue;
if (PS_ISSET(ps, NO_KERNEL_SUPPORT))
continue;
__stream_update_stats(ps, 0);
}


Loading…
Cancel
Save