summaryrefslogtreecommitdiffhomepage
path: root/FTNoIR_Tracker_UDP
diff options
context:
space:
mode:
authorWim Vriend <facetracknoir@gmail.com>2011-03-22 21:34:47 +0000
committerWim Vriend <facetracknoir@gmail.com>2011-03-22 21:34:47 +0000
commit277cc7603eb6b4d9fed6a0a2de245e4cdde6ee8b (patch)
tree1774fa28018005e4c96f5717d6d461dfb0123d5f /FTNoIR_Tracker_UDP
parentbe57b6b8d3f8339980df08f196d23415f7974418 (diff)
Successfully use console app for faceAPI 3.2.6. combined with tracker class in DLL.
Even managed to get the video-widget connected to the main-window... git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@56 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
Diffstat (limited to 'FTNoIR_Tracker_UDP')
-rw-r--r--FTNoIR_Tracker_UDP/FTNoIR_Tracker_UDP.h2
-rw-r--r--FTNoIR_Tracker_UDP/ftnoir_tracker_udp.cpp3
2 files changed, 3 insertions, 2 deletions
diff --git a/FTNoIR_Tracker_UDP/FTNoIR_Tracker_UDP.h b/FTNoIR_Tracker_UDP/FTNoIR_Tracker_UDP.h
index 506eb157..b5d644fd 100644
--- a/FTNoIR_Tracker_UDP/FTNoIR_Tracker_UDP.h
+++ b/FTNoIR_Tracker_UDP/FTNoIR_Tracker_UDP.h
@@ -16,7 +16,7 @@ public:
void Release();
void Initialize( QFrame *videoframe );
void StartTracker( HWND parent_window );
- void StopTracker();
+ void StopTracker( bool exit );
bool GiveHeadPoseData(THeadPoseData *data);
void loadSettings();
diff --git a/FTNoIR_Tracker_UDP/ftnoir_tracker_udp.cpp b/FTNoIR_Tracker_UDP/ftnoir_tracker_udp.cpp
index 1905a3bd..ba140cbb 100644
--- a/FTNoIR_Tracker_UDP/ftnoir_tracker_udp.cpp
+++ b/FTNoIR_Tracker_UDP/ftnoir_tracker_udp.cpp
@@ -127,11 +127,12 @@ void FTNoIR_Tracker_UDP::StartTracker( HWND parent_window )
return;
}
-void FTNoIR_Tracker_UDP::StopTracker()
+void FTNoIR_Tracker_UDP::StopTracker( bool exit )
{
//
// OK, the thread is not stopped, doing this. That might be dangerous anyway...
//
+ if (exit || !exit) return;
return;
}