summaryrefslogtreecommitdiffstats
path: root/demux/demux.c
diff options
context:
space:
mode:
Diffstat (limited to 'demux/demux.c')
-rw-r--r--demux/demux.c12
1 files changed, 0 insertions, 12 deletions
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)
{