Changeset 353f8cc in mainline


Ignore:
Timestamp:
2013-04-05T18:12:23Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fb14905
Parents:
2373ba7
Message:

hound: make sure all streams are gone before removing context

Location:
uspace/srv/audio/hound
Files:
3 edited

Legend:

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

    r2373ba7 r353f8cc  
    148148        if (!ctx)
    149149                return EINVAL;
     150        if (!list_empty(&ctx->streams))
     151                return EBUSY;
    150152        fibril_mutex_lock(&hound->list_guard);
    151153        list_remove(&ctx->link);
  • uspace/srv/audio/hound/hound_ctx.c

    r2373ba7 r353f8cc  
    7777        assert(ctx);
    7878        assert(!link_in_use(&ctx->link));
     79        assert(list_empty(&ctx->streams));
    7980        if (ctx->source)
    8081                audio_source_fini(ctx->source);
    8182        if (ctx->sink)
    8283                audio_sink_fini(ctx->sink);
    83         //TODO remove streams
    8484        free(ctx->source);
    8585        free(ctx->sink);
  • uspace/srv/audio/hound/iface.c

    r2373ba7 r353f8cc  
    6969        if (!ctx)
    7070                return EINVAL;
    71         hound_remove_ctx(server, ctx);
     71        int ret = hound_remove_ctx(server, ctx);
     72        if (ret != EOK)
     73                return ret;
    7274        hound_ctx_destroy(ctx);
    7375        log_info("%s: %p, %#x", __FUNCTION__, server, id);
Note: See TracChangeset for help on using the changeset viewer.