]> git.sesse.net Git - mlt/blobdiff - src/tests/test_properties/test_properties.cpp
Add mlt_properties_set_color().
[mlt] / src / tests / test_properties / test_properties.cpp
index a2f488c55f7b20d1a83557b4f872a5f7d1caf444..dee5e56d342aed1c6e66b8ec3041db11368b0e81 100644 (file)
@@ -846,8 +846,8 @@ private Q_SLOTS:
         QCOMPARE(color.g, quint8(0xbb));
         QCOMPARE(color.b, quint8(0xcc));
         QCOMPARE(color.a, quint8(0xdd));
-        p.set("key", *((int*) &color));
-        QCOMPARE(p.get_int("key"), int(0xddccbbaa));
+        p.set("key", color);
+        QCOMPARE(p.get_int("key"), int(0xaabbccdd));
     }
 
     void ColorFromString()