Bruno Jesus : msvfw32/tests: Check if requesting the default codec works.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Oct 22 10:22:08 CDT 2015


Module: wine
Branch: master
Commit: acd79650fe93a54413e1e994c3ec5faab263cbdd
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=acd79650fe93a54413e1e994c3ec5faab263cbdd

Author: Bruno Jesus <00cpxxx at gmail.com>
Date:   Thu Oct 22 20:15:45 2015 +0800

msvfw32/tests: Check if requesting the default codec works.

Signed-off-by: Bruno Jesus <00cpxxx at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/msvfw32/tests/msvfw.c | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/dlls/msvfw32/tests/msvfw.c b/dlls/msvfw32/tests/msvfw.c
index 0b18e47..a9c4053 100644
--- a/dlls/msvfw32/tests/msvfw.c
+++ b/dlls/msvfw32/tests/msvfw.c
@@ -28,6 +28,29 @@
 static void test_OpenCase(void)
 {
     HIC h;
+    ICINFO info;
+    /* Check if default handler works */
+    h = ICOpen(mmioFOURCC('v','i','d','c'),0,ICMODE_DECOMPRESS);
+todo_wine
+    ok(0!=h,"ICOpen(vidc.0) failed\n");
+    if (h) {
+        info.dwSize = sizeof(info);
+        info.szName[0] = 0;
+        ICGetInfo(h, &info, sizeof(info));
+        trace("The default decompressor is %s\n", wine_dbgstr_w(info.szName));
+        ok(ICClose(h)==ICERR_OK,"ICClose failed\n");
+    }
+    h = ICOpen(mmioFOURCC('v','i','d','c'),0,ICMODE_COMPRESS);
+todo_wine
+    ok(0!=h || broken(h == 0),"ICOpen(vidc.0) failed\n");  /* Not present in Win8 */
+    if (h) {
+        info.dwSize = sizeof(info);
+        info.szName[0] = 0;
+        ICGetInfo(h, &info, sizeof(info));
+        trace("The default compressor is %s\n", wine_dbgstr_w(info.szName));
+        ok(ICClose(h)==ICERR_OK,"ICClose failed\n");
+    }
+
     /* Open a compressor with combinations of lowercase
      * and uppercase compressortype and handler.
      */




More information about the wine-cvs mailing list