diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-08-16 18:45:01 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-08-16 18:45:01 +0000 |
commit | 2d3a8284a17b759285eb086501f159ee653be243 (patch) | |
tree | 27c464138a89458ffb08ddb4be0d6f41d0bf18f0 /loader/dshow/DS_VideoDec.c | |
parent | 1134c269bc63a37f89e85079231a2226c4a47c82 (diff) |
exception stuff fixed
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1561 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'loader/dshow/DS_VideoDec.c')
-rw-r--r-- | loader/dshow/DS_VideoDec.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/loader/dshow/DS_VideoDec.c b/loader/dshow/DS_VideoDec.c index d3d8ce2d12..0dddc9fab5 100644 --- a/loader/dshow/DS_VideoDec.c +++ b/loader/dshow/DS_VideoDec.c @@ -34,17 +34,16 @@ extern "C" int DS_VideoDecoder_Open(char* dllname, GUID* guid, BITMAPINFOHEADER* 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; - - return 0; + _d_ptr=d_ptr; + _handle=(void*)dec; + return 0; + } catch (FatalError &e) { } + + _handle=NULL; + return -1; + } extern "C" void DS_VideoDecoder_Start(){ |