Changeset 8f8ec69 in mainline


Ignore:
Timestamp:
2013-04-03T19:04:24Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6da3baec
Parents:
aab8e3d3
Message:

hound: register ctx source/sink

File:
1 edited

Legend:

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

    raab8e3d3 r8f8ec69  
    9999        fibril_mutex_lock(&hound->list_guard);
    100100        list_append(&ctx->link, &hound->contexts);
    101         //TODO register sinks/sources
    102         fibril_mutex_unlock(&hound->list_guard);
    103         return EOK;
     101        fibril_mutex_unlock(&hound->list_guard);
     102        int ret = EOK;
     103        if (ret == EOK && ctx->source)
     104                ret = hound_add_source(hound, ctx->source);
     105        if (ret == EOK && ctx->sink)
     106                ret = hound_add_sink(hound, ctx->sink);
     107        if (ret != EOK)
     108                hound_ctx_destroy(ctx);
     109        return ret;
    104110}
    105111
Note: See TracChangeset for help on using the changeset viewer.