From ca142be7e8c42d8fbc21935ee3f3db2b6d2f457c Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 1 Oct 2018 23:36:11 +0200 Subject: demux: another unused function --- demux/demux.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'demux/demux.c') diff --git a/demux/demux.c b/demux/demux.c index 4c9e462c5d..404e82433a 100644 --- a/demux/demux.c +++ b/demux/demux.c @@ -1972,18 +1972,6 @@ int demux_read_packet_async(struct sh_stream *sh, struct demux_packet **out_pkt) return r; } -// Return whether a packet is queued. Never blocks, never forces any reads. -bool demux_has_packet(struct sh_stream *sh) -{ - bool has_packet = false; - if (sh) { - pthread_mutex_lock(&sh->ds->in->lock); - has_packet = sh->ds->reader_head; - pthread_mutex_unlock(&sh->ds->in->lock); - } - return has_packet; -} - // Read and return any packet we find. NULL means EOF. struct demux_packet *demux_read_any_packet(struct demuxer *demuxer) { -- cgit v1.2.3