Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 6bd0216 in mainline


Ignore:
Timestamp:
2013-03-19T23:16:51Z (9 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master
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.