|
From: libvidcap c. m. <lib...@li...> - 2007-10-16 19:00:03
|
Revision: 49
http://libvidcap.svn.sourceforge.net/libvidcap/?rev=49&view=rev
Author: bcholew
Date: 2007-10-16 11:59:56 -0700 (Tue, 16 Oct 2007)
Log Message:
-----------
Handle failure to create new DShowSrcManager.
Modified Paths:
--------------
trunk/src/directshow/GraphMonitor.cpp
trunk/src/sapi_dshow.cpp
Modified: trunk/src/directshow/GraphMonitor.cpp
===================================================================
--- trunk/src/directshow/GraphMonitor.cpp 2007-10-16 18:36:13 UTC (rev 48)
+++ trunk/src/directshow/GraphMonitor.cpp 2007-10-16 18:59:56 UTC (rev 49)
@@ -86,8 +86,6 @@
DWORD rc = WaitForSingleObject(initDoneEvent_, INFINITE);
- return;
-
}
GraphMonitor::~GraphMonitor()
Modified: trunk/src/sapi_dshow.cpp
===================================================================
--- trunk/src/sapi_dshow.cpp 2007-10-16 18:36:13 UTC (rev 48)
+++ trunk/src/sapi_dshow.cpp 2007-10-16 18:59:56 UTC (rev 49)
@@ -214,6 +214,12 @@
return -1;
}
+ if ( sapi_ctx->priv == 0 )
+ {
+ log_error("failed constructing DShowSrcManager\n");
+ return -1;
+ }
+
sapi_ctx->identifier = identifier;
sapi_ctx->description = description;
sapi_ctx->acquire = sapi_acquire;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|