changeset 1560:a3d84360aa81

exception stuff fixed
author arpi
date Thu, 16 Aug 2001 18:45:01 +0000
parents 241ea640d1c3
children e71337d1e58b
files loader/dshow/DS_VideoDec.c
diffstat 1 files changed, 8 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/loader/dshow/DS_VideoDec.c	Thu Aug 16 18:39:49 2001 +0000
+++ b/loader/dshow/DS_VideoDec.c	Thu Aug 16 18:45:01 2001 +0000
@@ -34,17 +34,16 @@
     ci.dll=dllname;
     ci.guid=*guid;
 
-//    try {
+    try {
 	DS_VideoDecoder* dec=new DS_VideoDecoder(ci, *format, flip);
-//    } catch (FatalError &e) {
-//	_handle=NULL;
-//	return -1;
-//    }
-    
-    _d_ptr=d_ptr;
-    _handle=(void*)dec;
+	_d_ptr=d_ptr;
+	_handle=(void*)dec;
+	return 0;
+    } catch (FatalError &e) {  }
 
-    return 0;
+    _handle=NULL;
+    return -1;
+
 }
 
 extern "C" void DS_VideoDecoder_Start(){