From b3743ed6471d0088d180d884986d7caeb37eddca Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Sun, 6 Dec 2009 23:01:41 +0000 Subject: Added an alternative (tricky) codec to compile DCC_VIDEO without OGG_THEORA git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@3670 17fca916-40b9-46aa-a4ea-0a15b648b75c --- src/modules/dcc/video.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/modules/dcc/video.cpp') diff --git a/src/modules/dcc/video.cpp b/src/modules/dcc/video.cpp index 11d2c6ad5..310deb890 100644 --- a/src/modules/dcc/video.cpp +++ b/src/modules/dcc/video.cpp @@ -85,16 +85,19 @@ extern KviDccBroker * g_pDccBroker; bool kvi_dcc_video_is_valid_codec(const char * codecName) { - if(kvi_strEqualCI("jpeg",codecName))return true; + if(kvi_strEqualCI("sjpeg",codecName))return true; +#ifndef COMPILE_DISABLE_OGG_THEORA if(kvi_strEqualCI("theora",codecName))return true; +#endif return false; } static KviDccVideoCodec * kvi_dcc_video_get_codec(const char *codecName) { - Q_UNUSED(codecName); -// if(kvi_strEqualCI("jpeg",codecName))return new KviDccVideoJpegCodec(); - return new KviDccVideoTheoraCodec(); +#ifndef COMPILE_DISABLE_OGG_THEORA + if(kvi_strEqualCI("theora",codecName))return new KviDccVideoTheoraCodec(); +#endif + return new KviDccVideoSJpegCodec(); } -- cgit v1.3.1-10-gc9f91