diff options
author | Daniel Schürmann <daschuer@mixxx.org> | 2021-01-10 14:16:16 +0100 |
---|---|---|
committer | Daniel Schürmann <daschuer@mixxx.org> | 2021-01-10 14:16:16 +0100 |
commit | afe65d21bb1e360f8f494bb7ed5a65a2d5a373ce (patch) | |
tree | bb11e1c687b413fb7743707325d491a3ea3677ec /lib/libshout-idjc | |
parent | cf3188f50540a8394dbfa484883d776f41ef8b29 (diff) |
Fix indent
Diffstat (limited to 'lib/libshout-idjc')
-rw-r--r-- | lib/libshout-idjc/src/queue.c | 2 | ||||
-rw-r--r-- | lib/libshout-idjc/src/shout.c | 32 |
2 files changed, 17 insertions, 17 deletions
diff --git a/lib/libshout-idjc/src/queue.c b/lib/libshout-idjc/src/queue.c index ca735b82b0..a5274a05bb 100644 --- a/lib/libshout-idjc/src/queue.c +++ b/lib/libshout-idjc/src/queue.c @@ -135,7 +135,7 @@ ssize_t shout_queue_collect(shout_buf_t *queue, char **buf) for (node = queue; node; node = node->next) len += node->len; - if (!(*buf = malloc(len))) + if (!(*buf = malloc(len))) return SHOUTERR_MALLOC; for (node = queue; node; node = node->next) { diff --git a/lib/libshout-idjc/src/shout.c b/lib/libshout-idjc/src/shout.c index 9cc169909e..e764bbfadd 100644 --- a/lib/libshout-idjc/src/shout.c +++ b/lib/libshout-idjc/src/shout.c @@ -927,28 +927,28 @@ const char *shout_get_mimetype(shout_t *self) if (self->mimetype) return self->mimetype; - switch (self->format) { - case SHOUT_FORMAT_OGG: - mimetype = "application/ogg"; - break; - case SHOUT_FORMAT_MP3: - mimetype = "audio/mpeg"; - break; - case SHOUT_FORMAT_WEBM: - mimetype = "video/webm"; - break; - case SHOUT_FORMAT_WEBMAUDIO: - mimetype = "audio/webm"; - break; + switch (self->format) { + case SHOUT_FORMAT_OGG: + mimetype = "application/ogg"; + break; + case SHOUT_FORMAT_MP3: + mimetype = "audio/mpeg"; + break; + case SHOUT_FORMAT_WEBM: + mimetype = "video/webm"; + break; + case SHOUT_FORMAT_WEBMAUDIO: + mimetype = "audio/webm"; + break; case SHOUT_FORMAT_AAC: mimetype = "audio/aac"; break; case SHOUT_FORMAT_AACPLUS: mimetype = "audio/aacp"; break; - default: - mimetype = NULL; - } + default: + mimetype = NULL; + } return mimetype; } |