Fix some typos in code comments

Signed-off-by: wm4 <wm4@nowhere>
This commit is contained in:
Aman Gupta 2015-12-21 13:19:44 -08:00 committed by wm4
parent 7fa06e46c4
commit fccc3d3894
3 changed files with 3 additions and 3 deletions

View File

@ -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)
{

View File

@ -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,
/**

View File

@ -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);