Browse Source

TT#14008 set non_forwarding flag if no sinks are present

This silences a warning coming back from incorrect usage of the kernel
module

Change-Id: I2f03518a67620b92ef6b6ccd4ae6a4780087e206
pull/1373/head
Richard Fuchs 4 years ago
parent
commit
2770bec906
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      daemon/media_socket.c

+ 6
- 0
daemon/media_socket.c View File

@ -1333,6 +1333,12 @@ void kernelize(struct packet_stream *stream) {
if (!reti.local.family)
goto no_kernel;
if (!outputs.length && !reti.non_forwarding) {
reti.non_forwarding = 1;
ilog(LOG_NOTICE | LOG_FLAG_LIMIT, "Setting 'non-forwarding' flag for kernel stream due to "
"lack of sinks");
}
kernel_add_stream(&reti);
struct rtpengine_destination_info *redi;
while ((redi = g_queue_pop_head(&outputs))) {


Loading…
Cancel
Save