Browse Source

TT#14008 remove redundant check for FILLED sinks

We may have multiple subscribers, some of which may be dead/unused. We
don't care if we have these since we don't forward to them anyway.

possibly relevant for #1337

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

+ 0
- 21
daemon/media_socket.c View File

@ -2082,27 +2082,6 @@ static void media_packet_kernel_check(struct packet_handler_ctx *phc) {
return;
}
GQueue *sinks = phc->sinks;
// we might get called before the sinks are set via media_packet_rtcp_demux
if (!sinks) {
sinks = &phc->mp.stream->rtp_sinks;
if (!sinks->length)
sinks = &phc->mp.stream->rtcp_sinks;
}
for (GList *l = sinks->head; l; l = l->next) {
struct sink_handler *sh = l->data;
if (MEDIA_ISSET(sh->sink->media, ASYMMETRIC))
PS_SET(sh->sink, CONFIRMED);
if (!PS_ISSET(sh->sink, FILLED)) {
__C_DBG("sink not FILLED for stream %s:%d", sockaddr_print_buf(&phc->mp.stream->endpoint.address),
phc->mp.stream->endpoint.port);
return;
}
}
mutex_lock(&phc->mp.stream->in_lock);
kernelize(phc->mp.stream);
mutex_unlock(&phc->mp.stream->in_lock);


Loading…
Cancel
Save