# HG changeset patch # User zuxy # Date 1208024606 0 # Node ID 3d02fa79ae6caa3685a267a6a9314c111323b6b2 # Parent 59db094d34947562aae0d83c2fb26a53d0a95e72 Don't print "Could not patch" messages when we haven't actually tried to patch. diff -r 59db094d3494 -r 3d02fa79ae6c libmpcodecs/vd_realvid.c --- a/libmpcodecs/vd_realvid.c Sat Apr 12 18:19:51 2008 +0000 +++ b/libmpcodecs/vd_realvid.c Sat Apr 12 18:23:26 2008 +0000 @@ -204,9 +204,9 @@ rv_handle = handle; #ifndef WIN32_LOADER { - int patched = 0; // drv43260.dll if (wrvyuv_transform == (void *)0x634114d0) { + int patched; // patch away multithreaded decoding, it causes crashes static const uint8_t oldcode[13] = { 0x83, 0xbb, 0xf8, 0x05, 0x00, 0x00, 0x01, @@ -217,9 +217,9 @@ 0xe9, 0xd0, 0x00, 0x00, 0x00 }; patched = patch_dll((void *)0x634132fa, oldcode, newcode, sizeof(oldcode)); - } if (!patched) mp_msg(MSGT_DECVIDEO, MSGL_WARN, "Could not patch Real codec, this might crash on multi-CPU systems\n"); + } } #endif return 1;