diff --git a/daemon/media_socket.c b/daemon/media_socket.c index c4839591f..2add72ef6 100644 --- a/daemon/media_socket.c +++ b/daemon/media_socket.c @@ -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);