[Mplayer-cvslog] CVS: main/loader/DirectShow DS_VideoDec.cpp,1.11,1.12
Arpi of Ize
arpi at mplayer.dev.hu
Thu Aug 16 20:39:52 CEST 2001
Update of /cvsroot/mplayer/main/loader/DirectShow
In directory mplayer:/var/tmp.root/cvs-serv2880
Modified Files:
DS_VideoDec.cpp
Log Message:
fixes
Index: DS_VideoDec.cpp
===================================================================
RCS file: /cvsroot/mplayer/main/loader/DirectShow/DS_VideoDec.cpp,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- DS_VideoDec.cpp 16 Aug 2001 15:41:03 -0000 1.11
+++ DS_VideoDec.cpp 16 Aug 2001 18:39:49 -0000 1.12
@@ -1,9 +1,9 @@
#include "guids.h"
#include "interfaces.h"
+#include "libwin32.h"
#include "DS_VideoDecoder.h"
#include <wine/winerror.h>
-#include <libwin32.h>
//#include <cpuinfo.h>
#include <unistd.h>
@@ -33,8 +33,13 @@
CodecInfo ci;
ci.dll=dllname;
ci.guid=*guid;
-
- DS_VideoDecoder* dec=new DS_VideoDecoder(ci, *format, flip);
+
+// try {
+ DS_VideoDecoder* dec=new DS_VideoDecoder(ci, *format, flip);
+// } catch (FatalError &e) {
+// _handle=NULL;
+// return -1;
+// }
_d_ptr=d_ptr;
_handle=(void*)dec;
@@ -56,13 +61,15 @@
}
extern "C" void DS_VideoDecoder_Close(){
+ DS_VideoDecoder* dec=(DS_VideoDecoder*) _handle;
+ delete dec;
}
extern "C" int DS_VideoDecoder_DecodeFrame(char* src, int size, int is_keyframe, int render){
DS_VideoDecoder* dec=(DS_VideoDecoder*) _handle;
CImage image;
image.ptr=*_d_ptr;
- return dec->DecodeInternal((void*)src,(size_t)size,is_keyframe,&image);
+ return dec->Decode((void*)src,(size_t)size,is_keyframe,&image);
}
extern "C" int DS_VideoDecoder_SetDestFmt(int bits, int csp){
More information about the MPlayer-cvslog
mailing list