Exemple #1
0
int CHikVision::CloseChannel( HANDLE hChannel )
{
    if ( bRecorder ) {
        StopVideoCapture( hChannel );
    }

    return ChannelClose( hChannel );
}
EncodedStream::~EncodedStream(){
	ChannelClose(m_channel_handle);
	m_g_count--;
	m_g_channel_map.erase(m_channel_id);
	if (m_yuv_buf != NULL){
		delete[] m_yuv_buf;
	}
	if (m_encoder != NULL){
		delete m_encoder;
	}
	if (m_stream_writer != NULL){
		delete m_stream_writer;
	}
	if (m_g_count == 0){
		closeDSP();
	}

}
Exemple #3
0
NTSTATUS
NTAPI
ConMgrShutdown(VOID)
{
    NTSTATUS Status;

    /* Check if we have a SAC channel */
    if (SacChannel)
    {
        /* Close it */
        Status = ChannelClose(SacChannel);
        if (!NT_SUCCESS(Status))
        {
            SAC_DBG(SAC_DBG_INIT, "SAC ConMgrShutdown: failed closing SAC channel.\n");
        }

        /* No longer have one */
        SacChannel = NULL;
    }

    /* Check if we have a current channel */
    if (CurrentChannel)
    {
        /* Release it */
        Status = ChanMgrReleaseChannel(CurrentChannel);
        if (!NT_SUCCESS(Status))
        {
            SAC_DBG(SAC_DBG_INIT, "SAC ConMgrShutdown: failed releasing current channel\n");
        }

        /* No longer have one */
        CurrentChannel = NULL;
    }

    /* All done */
    return STATUS_SUCCESS;
}
Exemple #4
0
int CHikVision::CloseChannel( HANDLE hChannel )
{
    return ChannelClose( hChannel );
}