summaryrefslogtreecommitdiff
path: root/dxr3outputthread.c
diff options
context:
space:
mode:
Diffstat (limited to 'dxr3outputthread.c')
-rw-r--r--dxr3outputthread.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/dxr3outputthread.c b/dxr3outputthread.c
index 42381fe..ba7e7bb 100644
--- a/dxr3outputthread.c
+++ b/dxr3outputthread.c
@@ -69,6 +69,14 @@ cDxr3OutputThread(dxr3Device, buffer)
#endif
}
+//! destructor
+cDxr3AudioOutThread::~cDxr3AudioOutThread()
+{
+ m_buffer.Stop();
+ SetStopSignal();
+ Cancel(3);
+}
+
// ==================================
//! thread action
void cDxr3AudioOutThread::Action()
@@ -154,6 +162,14 @@ cDxr3OutputThread(dxr3Device, buffer)
#endif
}
+//! destructor
+cDxr3VideoOutThread::~cDxr3VideoOutThread()
+{
+ m_buffer.Stop();
+ SetStopSignal();
+ Cancel(3);
+}
+
// ==================================
//! thread action
void cDxr3VideoOutThread::Action()