This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/DRA746: Why skip dce_buf_unlock() after EOS?

Part Number: DRA746


Tool/software: Linux

http://git.ti.com/gitweb/?p=glsdk/omapdrmtest.git;a=blob;f=viddec3test.c;h=8c57ed92fd6333ea185ed51bd559491c354a4a99;hb=HEAD#l446

if(freeBufCount){
    if(!eof)dce_buf_unlock(freeBufCount,decoder->outBuf_fd);
    freeBufCount =0;
}

why we skip dec_buf_unlock() when there is eof?

it seems we should do it as well.