|
From: libvidcap c. <lib...@li...> - 2007-10-31 19:03:11
|
Revision: 60
http://libvidcap.svn.sourceforge.net/libvidcap/?rev=60&view=rev
Author: bcholew
Date: 2007-10-31 12:03:04 -0700 (Wed, 31 Oct 2007)
Log Message:
-----------
Return -1 when fail to scan for vidcap devices.
Modified Paths:
--------------
trunk/src/directshow/DShowSrcManager.cpp
Modified: trunk/src/directshow/DShowSrcManager.cpp
===================================================================
--- trunk/src/directshow/DShowSrcManager.cpp 2007-10-26 01:58:58 UTC (rev 59)
+++ trunk/src/directshow/DShowSrcManager.cpp 2007-10-31 19:03:04 UTC (rev 60)
@@ -100,7 +100,7 @@
if ( !pCreateDevEnum )
{
log_error("failed creating device enumerator - to scan\n");
- return 0;
+ return -1;
}
// Enumerate video capture devices
@@ -112,7 +112,7 @@
if ( !pEm )
{
log_error("Failed creating enumerator moniker\n");
- return 0;
+ return -1;
}
pEm->Reset();
@@ -128,7 +128,7 @@
if ( FAILED(hr) )
{
log_error("failed CreateBindCtx\n");
- return 0;
+ return -1;
}
IBaseFilter * pCaptureFilter = 0;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|