[xiph-commits] r9541 - trunk/oggdsf/src/lib/player/libDSPlayDotNET
davidb at svn.xiph.org
davidb at svn.xiph.org
Wed Jun 29 16:16:19 PDT 2005
Author: davidb
Date: 2005-06-29 16:16:17 -0700 (Wed, 29 Jun 2005)
New Revision: 9541
Modified:
trunk/oggdsf/src/lib/player/libDSPlayDotNET/DSPlay.cpp
Log:
- put a #ifdef around the use of the G: drive.
- release VMR9 and VMR7 resources if we used them (fixes a problem seen when loading a project file a number of times without closing AnxCreator application).
Modified: trunk/oggdsf/src/lib/player/libDSPlayDotNET/DSPlay.cpp
===================================================================
--- trunk/oggdsf/src/lib/player/libDSPlayDotNET/DSPlay.cpp 2005-06-29 23:12:08 UTC (rev 9540)
+++ trunk/oggdsf/src/lib/player/libDSPlayDotNET/DSPlay.cpp 2005-06-29 23:16:17 UTC (rev 9541)
@@ -118,7 +118,9 @@
CoInitialize(NULL);
mCMMLProxy = new CMMLCallbackProxy; //Need to delete this !
debugLog = new fstream;
+#ifdef OGGCODECS_LOGGING
debugLog->open("G:\\logs\\dsplay.log", ios_base::out | ios_base::app);
+#endif
*debugLog<<"Starting new log"<<endl;
}
@@ -484,8 +486,7 @@
}
- //numRef =
- // locVMR9->Release();
+ numRef = locVMR9->Release();
//*debugLog<<"VMR9 ref count = "<<numRef<<endl;
mVideoRenderFilter = locVMR9;
}
@@ -519,8 +520,7 @@
}
- //numRef =
- // locVMR7->Release();
+ numRef = locVMR7->Release();
//*debugLog<<"VMR7 ref count = "<<numRef<<endl;
mVideoRenderFilter = locVMR7;
More information about the commits
mailing list