Author: sayer
Date: 2009-02-10 16:35:11 +0100 (Tue, 10 Feb 2009)
New Revision: 1266
Added:
trunk/core/CMakeLists.txt
trunk/core/plug-in/CMakeLists.txt
trunk/core/plug-in/wav/CMakeLists.txt
Modified:
trunk/core/AmSession.cpp
trunk/core/AmSession.h
Log:
setStopped with wakeup option
Modified: trunk/core/AmSession.cpp
===================================================================
--- trunk/core/AmSession.cpp 2009-02-10 13:22:18 UTC (rev 1265)
+++ trunk/core/AmSession.cpp 2009-02-10 15:35:11 UTC (rev 1266)
@@ -393,6 +393,13 @@
clearAudio();
}
+void AmSession::setStopped(bool wakeup) {
+ sess_stopped.set(true);
+ if (wakeup)
+ AmSessionContainer::instance()->postEvent(getLocalTag(),
+ new AmEvent(0));
+}
+
void AmSession::destroy()
{
DBG("AmSession::destroy()\n");
Modified: trunk/core/AmSession.h
===================================================================
--- trunk/core/AmSession.h 2009-02-10 13:22:18 UTC (rev 1265)
+++ trunk/core/AmSession.h 2009-02-10 15:35:11 UTC (rev 1266)
@@ -310,8 +310,10 @@
* Signals the session it should stop.
* This will cause the session to be able
* to exit the main loop.
+ * If wakeup is set, a bogus event will
+ * be sent to wake up the session.
*/
- void setStopped() { sess_stopped.set(true); }
+ void setStopped(bool wakeup = false);
/**
* Has the session already been stopped ?
Copied: trunk/core/CMakeLists.txt (from rev 1180, trunk/core/CMakeLists.txt)
Copied: trunk/core/plug-in/CMakeLists.txt (from rev 1180,
trunk/core/plug-in/CMakeLists.txt)
Copied: trunk/core/plug-in/wav/CMakeLists.txt (from rev 1180,
trunk/core/plug-in/wav/CMakeLists.txt)
_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev