Browse Source

TT#14008 fix possible segfault

Not only check for the presence of a sink, but also check for a sink FD.
Treat a sink without an FD as if there is no sink.

Closes #1401

Change-Id: I04c0be33f8cae39399674ca0a87185a729daa843
pull/1407/head
Richard Fuchs 4 years ago
parent
commit
179b7edec1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      daemon/media_socket.c

+ 1
- 1
daemon/media_socket.c View File

@ -1274,7 +1274,7 @@ static const char *kernelize_one(struct rtpengine_target_info *reti, GQueue *out
output:
// output section
if (non_forwarding) // also applies to sink == NULL
if (non_forwarding || !sink || !sink->selected_sfd)
return NULL; // no output
if (!PS_ISSET(sink, FILLED))
return NULL;


Loading…
Cancel
Save