Browse Source

Zizi 32

AGP
Evgeny Gagua 2 years ago
parent
commit
941abbfc2c
  1. 2
      lib/App/common/deviceNodeCamera.cpp
  2. 10
      lib/App/mojo/mojoKernel.cpp
  3. 1
      lib/data/media/video/videoAVLIBSource.cpp
  4. 1
      lib/data/protocol/protocolPTZ.h

2
lib/App/common/deviceNodeCamera.cpp

@ -905,7 +905,7 @@ void deviceNodeCamera::m_fThreadProc( void ){
};
} else {
#ifdef DEBUG
LOG("Skip! Go Home!");
LOG("Go Home!");
#endif
CSTR TK = getPresetToken( ARGUS_PRESET_TYPE_HOME );
if( TK ) {

10
lib/App/mojo/mojoKernel.cpp

@ -1079,15 +1079,15 @@ void mojoKernel::handleVideo( VIDEO_SEGMENT_INFO *ptr ){
//if wm is debug -> add all to database, else send to server
ptr->db_id = m_pDBC->addVideoRecord( ptr->stream_id, ptr->recordMD5, ptr->recordEXT, ptr->streamTSS, ptr->streamTMS, ptr->streamFPS );
if ( ptr->db_id ) {
#ifdef DEBUG
#ifdef DEBUG_EXTRA
LOG("Video File Registered");
#endif
for (int idx = 0; idx < ptr->eventIDS.size(); idx++) {
#ifdef DEBUG
#ifdef DEBUG_EXTRA
LOG("Binding Event to a Video File!");
#endif
if( m_pDBC->addVideoEvent( ptr->eventIDS[idx], ptr->db_id, ptr->eventFrames[idx], ptr->eventTSS[idx], ptr->eventTMS[idx] )) {
#ifdef DEBUG
#ifdef DEBUG_EXTRA
LOG("OK");
#endif
};
@ -1101,7 +1101,7 @@ void mojoKernel::handleVideo( VIDEO_SEGMENT_INFO *ptr ){
fileCopy( ptr->scratchPath, tB );
ch_chown( tB, "nobody", "nogroup" );
chmod( tB, 0664 );
#ifdef DEBUG
#ifdef DEBUG_EXTRA
LOG("Video Saved");
#endif
free( tP );
@ -1116,7 +1116,7 @@ void mojoKernel::handleVideo( VIDEO_SEGMENT_INFO *ptr ){
};
if( !bKeepVideoFile ){
unlink( ptr->scratchPath );
#ifdef DEBUG
#ifdef DEBUG_EXTRA
LOG("Video Scratch Deleted!");
#endif
};

1
lib/data/media/video/videoAVLIBSource.cpp

@ -93,6 +93,7 @@ videoAVLIBSource::videoAVLIBSource( char *Source, void *opaque ) : basicMediaSou
};
videoAVLIBSource::~videoAVLIBSource(){
_close();
if (m_pVideoState != NULL){
if( m_pVideoState->m_bStatus > MS_INIT ){
m_bThreadStatus = TH_ENDED;

1
lib/data/protocol/protocolPTZ.h

@ -181,6 +181,7 @@ class protocolPTZ: public protocolParser {
virtual double getPSpeed( void ){ return m_dPanSpeed; };
virtual double getTSpeed( void ){ return m_dTiltSpeed; };
virtual double getZSpeed( void ){ return m_dZoomSpeed; };
virtual bool getPresets( void ){ return false; };
virtual bool move(uint32_t MoveMatrix){ return true; };
virtual bool goUp( void ){ return true; };
virtual bool goDown( void ){ return true; };

Loading…
Cancel
Save