Changeset 541eb67 in mainline for uspace/srv/audio/hound/connection.c


Ignore:
Timestamp:
2017-12-20T16:08:49Z (6 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d4a829e
Parents:
d9f0894
Message:

Hound error handling fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/audio/hound/connection.c

    rd9f0894 r541eb67  
    101101 * @param format format of the destination audio buffer.
    102102 */
    103 ssize_t connection_add_source_data(connection_t *connection, void *data,
     103int connection_add_source_data(connection_t *connection, void *data,
    104104    size_t size, pcm_format_t format)
    105105{
     
    116116        log_verbose("Data available after update: %zu",
    117117            audio_pipe_bytes(&connection->fifo));
    118         ssize_t ret =
     118        size_t ret =
    119119            audio_pipe_mix_data(&connection->fifo, data, size, &format);
    120         if (ret != (ssize_t)size)
     120        if (ret != size)
    121121                log_warning("Connection failed to provide enough data %zd/%zu",
    122122                    ret, size);
    123         return ret > 0 ? EOK : ret;
     123        return EOK;
    124124}
    125125/**
Note: See TracChangeset for help on using the changeset viewer.