Ignore:
Timestamp:
2013-03-19T23:16:51Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
842eecdd
Parents:
b66d43b
Message:

libdrv, audio_pcm: Don't touch buffers if callback registration fails.

Makes no sense.
Fixes repeated playback.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/drv/generic/remote_audio_pcm.c

    rb66d43b r6bd0216  
    645645        if (sess == NULL) {
    646646                ddf_msg(LVL_DEBUG, "Failed to create event callback");
    647                 pcm_iface->release_buffer(fun);
    648647                async_answer_0(callback_id, EAGAIN);
    649648                return;
     
    652651        if (ret != EOK) {
    653652                ddf_msg(LVL_DEBUG, "Failed to set event callback.");
    654                 pcm_iface->release_buffer(fun);
    655653                async_hangup(sess);
    656654                async_answer_0(callback_id, ret);
Note: See TracChangeset for help on using the changeset viewer.