|
From: libvidcap c. <lib...@li...> - 2007-10-31 19:07:02
|
Revision: 61
http://libvidcap.svn.sourceforge.net/libvidcap/?rev=61&view=rev
Author: bcholew
Date: 2007-10-31 12:06:55 -0700 (Wed, 31 Oct 2007)
Log Message:
-----------
Return failure if a capture start is attempted while previous capture start attempt is still pending.
Modified Paths:
--------------
trunk/src/directshow/SourceStateMachine.cpp
Modified: trunk/src/directshow/SourceStateMachine.cpp
===================================================================
--- trunk/src/directshow/SourceStateMachine.cpp 2007-10-31 19:03:04 UTC (rev 60)
+++ trunk/src/directshow/SourceStateMachine.cpp 2007-10-31 19:06:55 UTC (rev 61)
@@ -291,6 +291,8 @@
break;
}
+ pSrc->okToSendStart_ = true;
+
pSrc->doCancelCapture();
}
else if ( index == startEventIndex )
@@ -340,7 +342,10 @@
SourceStateMachine::start()
{
if ( !okToSendStart_ )
+ {
+ log_warn("ERROR: Source not ready for a start command\n");
return -1;
+ }
okToSendStart_ = false;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|