summaryrefslogtreecommitdiffstats
path: root/demux/demux.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2018-10-01 23:36:11 +0200
committerwm4 <wm4@nowhere>2019-09-19 20:37:04 +0200
commitca142be7e8c42d8fbc21935ee3f3db2b6d2f457c (patch)
tree8ebeed5edfc9a9a9a29ecf0f90ca32e06b0ec301 /demux/demux.c
parent475f61710e4894788309613c58eafee88d53594a (diff)
downloadmpv-ca142be7e8c42d8fbc21935ee3f3db2b6d2f457c.tar.bz2
mpv-ca142be7e8c42d8fbc21935ee3f3db2b6d2f457c.tar.xz
demux: another unused function
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)
{