summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--audio/out/pull.c2
-rw-r--r--libmpv/client.h2
-rw-r--r--stream/stream.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/audio/out/pull.c b/audio/out/pull.c
index ed85c4ee00..1484c5195f 100644
--- a/audio/out/pull.c
+++ b/audio/out/pull.c
@@ -113,7 +113,7 @@ static int play(struct ao *ao, void **data, int samples, int flags)
// rest of the user-provided buffer with silence.
// This basically assumes that the audio device doesn't care about underruns.
// If this is called in paused mode, it will always return 0.
-// The caller should set out_time_us to the expected delay the last sample
+// The caller should set out_time_us to the expected delay until the last sample
// reaches the speakers, in microseconds, using mp_time_us() as reference.
int ao_read_data(struct ao *ao, void **data, int samples, int64_t out_time_us)
{
diff --git a/libmpv/client.h b/libmpv/client.h
index 190b2ae4a0..313b6dfd89 100644
--- a/libmpv/client.h
+++ b/libmpv/client.h
@@ -602,7 +602,7 @@ typedef enum mpv_format {
* Example for writing:
*
* int flag = 1;
- * mpv_set_property(ctx, "property", MPV_FORMAT_STRING, &flag);
+ * mpv_set_property(ctx, "property", MPV_FORMAT_FLAG, &flag);
*/
MPV_FORMAT_FLAG = 3,
/**
diff --git a/stream/stream.c b/stream/stream.c
index 1ceb184c48..cf9a8ea143 100644
--- a/stream/stream.c
+++ b/stream/stream.c
@@ -500,7 +500,7 @@ int stream_fill_buffer(stream_t *s)
}
// Read between 1..buf_size bytes of data, return how much data has been read.
-// Return 0 on EOF, error, of if buf_size was 0.
+// Return 0 on EOF, error, or if buf_size was 0.
int stream_read_partial(stream_t *s, char *buf, int buf_size)
{
assert(s->buf_pos <= s->buf_len);