1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-25 16:33:02 +00:00

various: fix tabs in code

This commit is contained in:
nanahi 2024-03-19 22:26:26 -04:00 committed by Kacper Michajłow
parent bb88e4aeb5
commit f11002cef3
4 changed files with 14 additions and 14 deletions

View File

@ -327,7 +327,7 @@ static bool audio_write(struct ao *ao, void **data, int samples)
while ((rc = write(p->dsp_fd, data[0], size)) == -1) {
if (errno == EINTR)
continue;
continue;
MP_WARN(ao, "audio_write: write() fail, err = %i: %s.\n",
errno, mp_strerror(errno));
return false;

View File

@ -38,7 +38,7 @@
#if !PW_CHECK_VERSION(0, 3, 50)
static inline int pw_stream_get_time_n(struct pw_stream *stream, struct pw_time *time, size_t size) {
return pw_stream_get_time(stream, time);
return pw_stream_get_time(stream, time);
}
#endif

View File

@ -30,11 +30,11 @@
size_t
freebsd_strnlen(const char *s, size_t maxlen)
{
size_t len;
size_t len;
for (len = 0; len < maxlen; len++, s++) {
if (!*s)
break;
}
return (len);
for (len = 0; len < maxlen; len++, s++) {
if (!*s)
break;
}
return (len);
}

View File

@ -49,12 +49,12 @@ static mpv_handle *ctx;
MP_NORETURN PRINTF_ATTRIBUTE(1, 2)
static void fail(const char *fmt, ...)
{
if (fmt) {
va_list va;
va_start(va, fmt);
vfprintf(stderr, fmt, va);
va_end(va);
}
if (fmt) {
va_list va;
va_start(va, fmt);
vfprintf(stderr, fmt, va);
va_end(va);
}
exit(1);
}