|
|
|
@ -1448,7 +1448,7 @@ bool kernelModuleEmbedVideo::dispatchEvent( EVENT_CONTAINER *Evt ){ |
|
|
|
break; |
|
|
|
}; |
|
|
|
case EVT_CAMERA_ON_POSITION:{ |
|
|
|
#ifdef DEBUG_EXTRA
|
|
|
|
#ifdef DEBUG
|
|
|
|
LOG("Cam On Position After Event -> Capture Picture"); |
|
|
|
#endif
|
|
|
|
DBC_SNAPSHOT_DATA *tData = (DBC_SNAPSHOT_DATA *) Evt->m_pEvtData; |
|
|
|
@ -1457,6 +1457,9 @@ bool kernelModuleEmbedVideo::dispatchEvent( EVENT_CONTAINER *Evt ){ |
|
|
|
tData->assoc_event_ids.clear(); |
|
|
|
delete( tData ); |
|
|
|
Evt->m_pEvtData = NULL; |
|
|
|
#ifdef DEBUG
|
|
|
|
LOG("Event Data Saved!"); |
|
|
|
#endif
|
|
|
|
} else LOG_ERROR("No Evt Data!"); |
|
|
|
break; |
|
|
|
}; |
|
|
|
@ -1498,16 +1501,20 @@ bool kernelModuleEmbedVideo::saveStreamPicture( DBC_SNAPSHOT_DATA *ptr ){ |
|
|
|
m_mPictureProtector.unlock(); |
|
|
|
LOG_ERROR("No memory to allocate!"); |
|
|
|
}; |
|
|
|
#ifdef DEBUG_EXTRA
|
|
|
|
#ifdef DEBUG
|
|
|
|
} else { |
|
|
|
LOG("No apropriate Stream Found!"); |
|
|
|
#endif
|
|
|
|
}; |
|
|
|
}; |
|
|
|
//*/
|
|
|
|
}; |
|
|
|
#ifdef DEBUG
|
|
|
|
} else { |
|
|
|
LOG("No Pic Mode!"); |
|
|
|
#endif
|
|
|
|
} |
|
|
|
if( ( m_sEmbedVideoData.output_mode & EVE_OUTPUT_VIDEO ) == EVE_OUTPUT_VIDEO ){ |
|
|
|
#ifdef DEBUG_EXTRA
|
|
|
|
#ifdef DEBUG
|
|
|
|
LOG("Saving Video!"); |
|
|
|
#endif
|
|
|
|
if( ptr->assoc_event_ids.size() ){ |
|
|
|
@ -1518,18 +1525,18 @@ bool kernelModuleEmbedVideo::saveStreamPicture( DBC_SNAPSHOT_DATA *ptr ){ |
|
|
|
uint32_t cfrm; |
|
|
|
for( DBC_INT_LIST::iterator idx = ptr->assoc_event_ids.begin(); idx < ptr->assoc_event_ids.end(); idx++ ) |
|
|
|
(*hnd).second->triggerEvent( (*idx), db_id, cfrm ); |
|
|
|
#ifdef DEBUG_EXTRA
|
|
|
|
#ifdef DEBUG
|
|
|
|
} else { |
|
|
|
LOG("No Stream Found!"); |
|
|
|
#endif
|
|
|
|
}; |
|
|
|
m_mStreamHandlersProtector.unlock(); |
|
|
|
#ifdef DEBUG_EXTRA
|
|
|
|
#ifdef DEBUG
|
|
|
|
} else { |
|
|
|
LOG("No Assoc EVTIDS!"); |
|
|
|
#endif
|
|
|
|
}; |
|
|
|
#ifdef DEBUG_EXTRA
|
|
|
|
#ifdef DEBUG
|
|
|
|
} else { |
|
|
|
LOG("No Video Mode!"); |
|
|
|
#endif
|
|
|
|
|