Revision: 18764
http://opalvoip.svn.sourceforge.net/opalvoip/?rev=18764&view=rev
Author: shorne
Date: 2007-10-25 12:29:15 -0700 (Thu, 25 Oct 2007)
Log Message:
-----------
Fixed segfault with PTRACE in PVideoDeviceBitmap::ApplyFormat()
Modified Paths:
--------------
ptlib/trunk/src/ptlib/msos/vfw.cxx
Modified: ptlib/trunk/src/ptlib/msos/vfw.cxx
===================================================================
--- ptlib/trunk/src/ptlib/msos/vfw.cxx 2007-10-24 21:11:45 UTC (rev 18763)
+++ ptlib/trunk/src/ptlib/msos/vfw.cxx 2007-10-25 19:29:15 UTC (rev 18764)
@@ -638,7 +638,7 @@
if (capSetVideoFormat(hWnd, theArray, GetSize())) {
PTRACE(3, "PVidInp\tcapSetVideoFormat succeeded: "
- << formatTableEntry.colourFormat << ' '
+ << PString(formatTableEntry.colourFormat) << ' '
<< bmi.bmiHeader.biWidth << "x" << bmi.bmiHeader.biHeight
<< " sz=" << bmi.bmiHeader.biSizeImage << " time=" << (PTimer::Tick() - startTime));
return TRUE;
@@ -648,7 +648,7 @@
bmi.bmiHeader.biHeight = height;
if (capSetVideoFormat(hWnd, theArray, GetSize())) {
PTRACE(3, "PVidInp\tcapSetVideoFormat succeeded: "
- << formatTableEntry.colourFormat << ' '
+ << PString(formatTableEntry.colourFormat) << ' '
<< bmi.bmiHeader.biWidth << "x" << bmi.bmiHeader.biHeight
<< " sz=" << bmi.bmiHeader.biSizeImage << " time=" << (PTimer::Tick() - startTime));
return TRUE;
@@ -656,7 +656,7 @@
}
PTRACE(1, "PVidInp\tcapSetVideoFormat failed: "
- << formatTableEntry.colourFormat << ' '
+ << PString(formatTableEntry.colourFormat) << ' '
<< bmi.bmiHeader.biWidth << "x" << bmi.bmiHeader.biHeight
<< " sz=" << bmi.bmiHeader.biSizeImage << " time=" << (PTimer::Tick() - startTime)
<< " - lastError=" << ::GetLastError());
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|