int videoCapturerReleaseStream()

in source/T31/T31VideoCapturer.c [371:386]


int videoCapturerReleaseStream(VideoCapturerHandle handle)
{
    T31_HANDLE_NULL_CHECK(handle);
    T31_HANDLE_GET(handle);

    if (stopRecvPic(handle, t31Handle->channelNum)) {
        return -EAGAIN;
    }

    if (IMP_FrameSource_DisableChn(chn[t31Handle->channelNum].index)) {
        LOG("FrameSource StreamOff failed");
        return -EAGAIN;
    }

    return setStatus(handle, VID_CAP_STATUS_STREAM_OFF);
}