Update of /cvsroot/artoolkit/artoolkit/lib/SRC/VideoWin32DirectShow
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv17294/lib/SRC/VideoWin32DirectShow
Modified Files:
videoWin32DirectShow.cpp
Log Message:
- added reading of environment variable ARTOOLKIT_CONFIG for DSVL video capture
Index: videoWin32DirectShow.cpp
===================================================================
RCS file: /cvsroot/artoolkit/artoolkit/lib/SRC/VideoWin32DirectShow/videoWin32DirectShow.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** videoWin32DirectShow.cpp 28 Sep 2006 05:50:16 -0000 1.9
--- videoWin32DirectShow.cpp 6 Dec 2006 02:14:32 -0000 1.10
***************
*** 156,160 ****
vid->graphManager = new DSVL_VideoSource();
if (!config) {
! if (FAILED(vid->graphManager->BuildGraphFromXMLString(config_default))) return(NULL);
} else {
if (strncmp(config, "<?xml", 5) == 0) {
--- 156,167 ----
vid->graphManager = new DSVL_VideoSource();
if (!config) {
!
! config = getenv("ARTOOLKIT_CONFIG");
!
! if (config == NULL) {
! config = &config_default[0];
! }
! if (FAILED(vid->graphManager->BuildGraphFromXMLString(config))) return(NULL);
!
} else {
if (strncmp(config, "<?xml", 5) == 0) {
|