summaryrefslogtreecommitdiffstats
path: root/demux
diff options
context:
space:
mode:
authorAlexander Seiler <seileralex@gmail.com>2023-03-28 17:16:42 +0200
committerDudemanguy <random342@airmail.cc>2023-03-28 19:29:44 +0000
commitbdf7b5c3b81033a61e218808a95fd3144f20d993 (patch)
tree619c4a9ad0da5c5c274d52c65d0e0bdc6306dbec /demux
parent292a5868cb60c481ae9eaed7d21e67dcff41938f (diff)
downloadmpv-bdf7b5c3b81033a61e218808a95fd3144f20d993.tar.bz2
mpv-bdf7b5c3b81033a61e218808a95fd3144f20d993.tar.xz
various: fix various typos in the code base
Signed-off-by: Alexander Seiler <seileralex@gmail.com>
Diffstat (limited to 'demux')
-rw-r--r--demux/demux.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/demux/demux.c b/demux/demux.c
index 3f62661bb9..3ed519318f 100644
--- a/demux/demux.c
+++ b/demux/demux.c
@@ -471,7 +471,7 @@ static void prune_old_packets(struct demux_internal *in);
static void dumper_close(struct demux_internal *in);
static void demux_convert_tags_charset(struct demuxer *demuxer);
-static uint64_t get_foward_buffered_bytes(struct demux_stream *ds)
+static uint64_t get_forward_buffered_bytes(struct demux_stream *ds)
{
if (!ds->reader_head)
return 0;
@@ -541,7 +541,7 @@ static void check_queue_consistency(struct demux_internal *in)
// ...reader_head and others must be in the queue.
assert(is_forward == !!queue->ds->reader_head);
assert(kf_found == !!queue->keyframe_latest);
- uint64_t fw_bytes2 = get_foward_buffered_bytes(queue->ds);
+ uint64_t fw_bytes2 = get_forward_buffered_bytes(queue->ds);
assert(fw_bytes == fw_bytes2);
}
@@ -2124,7 +2124,7 @@ static void add_packet_locked(struct sh_stream *stream, demux_packet_t *dp)
ds->base_ts = queue->last_ts;
const char *num_pkts = queue->head == queue->tail ? "1" : ">1";
- uint64_t fw_bytes = get_foward_buffered_bytes(ds);
+ uint64_t fw_bytes = get_forward_buffered_bytes(ds);
MP_TRACE(in, "append packet to %s: size=%zu pts=%f dts=%f pos=%"PRIi64" "
"[num=%s size=%zd]\n", stream_type_name(stream->type),
dp->len, dp->pts, dp->dts, dp->pos, num_pkts, (size_t)fw_bytes);
@@ -2218,7 +2218,7 @@ static bool read_packet(struct demux_internal *in)
if (!in->hyst_active)
prefetch_more |= ds->queue->last_ts - ds->base_ts < in->min_secs;
}
- total_fw_bytes += get_foward_buffered_bytes(ds);
+ total_fw_bytes += get_forward_buffered_bytes(ds);
}
MP_TRACE(in, "bytes=%zd, read_more=%d prefetch_more=%d, refresh_more=%d\n",
@@ -2239,7 +2239,7 @@ static bool read_packet(struct demux_internal *in)
for (struct demux_packet *dp = ds->reader_head;
dp; dp = dp->next)
num_pkts++;
- uint64_t fw_bytes = get_foward_buffered_bytes(ds);
+ uint64_t fw_bytes = get_forward_buffered_bytes(ds);
MP_WARN(in, " %s/%d: %zd packets, %zd bytes%s%s\n",
stream_type_name(ds->type), n,
num_pkts, (size_t)fw_bytes,
@@ -2320,7 +2320,7 @@ static void prune_old_packets(struct demux_internal *in)
uint64_t fw_bytes = 0;
for (int n = 0; n < in->num_streams; n++) {
struct demux_stream *ds = in->streams[n]->ds;
- fw_bytes += get_foward_buffered_bytes(ds);
+ fw_bytes += get_forward_buffered_bytes(ds);
}
uint64_t max_avail = in->max_bytes_bw;
// Backward cache (if enabled at all) can use unused forward cache.
@@ -4520,7 +4520,7 @@ void demux_get_reader_state(struct demuxer *demuxer, struct demux_reader_state *
r->ts_end = MP_PTS_MAX(r->ts_end, ds->queue->last_ts);
any_packets |= !!ds->reader_head;
}
- r->fw_bytes += get_foward_buffered_bytes(ds);
+ r->fw_bytes += get_forward_buffered_bytes(ds);
}
r->idle = (!in->reading && !r->underrun) || r->eof;
r->underrun &= !r->idle && in->threading;