Author: derek Date: Tue Jul 31 00:15:35 2007 New Revision: 380 Modified: sofaswitch/trunk/voip/udpconnection.cxx sofaswitch/trunk/voip/udpep.cxx Log: Another go at commiting, which contains test on OPAL_VIDEO Modified: sofaswitch/trunk/voip/udpconnection.cxx ============================================================================== --- sofaswitch/trunk/voip/udpconnection.cxx (original) +++ sofaswitch/trunk/voip/udpconnection.cxx Tue Jul 31 00:15:35 2007 @@ -43,7 +43,10 @@ #include <ptlib/videoio.h> #include <codec/silencedetect.h> +#if OPAL_VIDEO #include <codec/vidcodec.h> +#endif + #include <opal/call.h> #include <opal/patch.h> #include <opal/manager.h> @@ -183,9 +186,9 @@ OpalMediaFormatList formats; formats += OpalPCM16; // Sound card can only do 16 bit PCM - +#if OPAL_VIDEO AddVideoMediaFormats(formats); - +#endif return formats; } Modified: sofaswitch/trunk/voip/udpep.cxx ============================================================================== --- sofaswitch/trunk/voip/udpep.cxx (original) +++ sofaswitch/trunk/voip/udpep.cxx Tue Jul 31 00:15:35 2007 @@ -37,9 +37,11 @@ #endif +#if OPAL_VIDEO #include <ptlib/videoio.h> -#include <codec/silencedetect.h> #include <codec/vidcodec.h> +#endif +#include <codec/silencedetect.h> #include <opal/call.h> #include <opal/patch.h> #include <opal/manager.h> @@ -149,7 +151,9 @@ formats += OpalPCM16; // Sound card can only do 16 bit PCM +#if OPAL_VIDEO AddVideoMediaFormats(formats); +#endif return formats; }