Exemplo n.º 1
0
Int32 DupLink_drvDelete(DupLink_Obj * pObj)
{
    UInt32 outId;
    Int32 status;

    for (outId = 0; outId < DUP_LINK_MAX_OUT_QUE; outId++)
    {
        status = Utils_bufDelete(&pObj->outFrameQue[outId]);
        UTILS_assert(status == FVID2_SOK);
    }

    Semaphore_delete(&pObj->lock);

#ifdef SYSTEM_DEBUG_DUP
    Vps_printf(" %d: DUP   : Delete Done !!!\n", Utils_getCurTimeInMsec());
#endif

    return FVID2_SOK;
}
Exemplo n.º 2
0
Int32 NullSrcLink_drvDelete(NullSrcLink_Obj * pObj)
{
    Int32 status;

#ifdef SYSTEM_DEBUG_SWMS
    Vps_printf(" %d: NULL_SRC: Delete in progress !!!\n", Utils_getCurTimeInMsec());
#endif

    status = Utils_bufDelete(&pObj->bufOutQue);
    UTILS_assert(status == FVID2_SOK);

    Clock_delete(&pObj->timer);

    Utils_memFrameFree(&pObj->outFormat, pObj->outFrames, 1);

#ifdef SYSTEM_DEBUG_SWMS
    Vps_printf(" %d: NULL_SRC: Delete Done !!!\n", Utils_getCurTimeInMsec());
#endif

    return FVID2_SOK;
}