From 6912e1946eff3b6877430c6b9e8ac831aa4db11d Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Sat, 31 Mar 2001 00:13:51 +0000 Subject: [PATCH] Adjust the test cases to the new FOURCC API. Original commit message from CVS: Adjust the test cases to the new FOURCC API. --- tests/caps.c | 10 +++++----- tests/props.c | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/caps.c b/tests/caps.c index df8147eeed..047b4ba675 100644 --- a/tests/caps.c +++ b/tests/caps.c @@ -23,8 +23,8 @@ static GstCapsFactory mpeg2dec_src_caps = { "mpeg2dec_src", "video/raw", "fourcc", GST_PROPS_LIST ( - GST_PROPS_FOURCC ('Y','V','1','2'), - GST_PROPS_FOURCC_INT (0x56595559) + GST_PROPS_FOURCC (GST_MAKE_FOURCC ('Y','V','1','2')), + GST_PROPS_FOURCC (GST_MAKE_FOURCC ('Y','U','Y','2')) ), "width", GST_PROPS_INT_RANGE (16, 4096), "height", GST_PROPS_INT_RANGE (16, 4096), @@ -35,7 +35,7 @@ static GstCapsFactory raw_sink_caps = { "raw_sink_caps", "video/raw", "fourcc", GST_PROPS_LIST ( - GST_PROPS_FOURCC_INT (0x32315659) + GST_PROPS_FOURCC (GST_MAKE_FOURCC ('Y','V','1','2')) ), "height", GST_PROPS_INT_RANGE (16, 256), NULL @@ -45,8 +45,8 @@ static GstCapsFactory raw2_sink_caps = { "raw2_sink_caps", "video/raw", "fourcc", GST_PROPS_LIST ( - GST_PROPS_FOURCC_INT (0x32315659), - GST_PROPS_FOURCC ('Y','U','Y','V') + GST_PROPS_FOURCC (GST_MAKE_FOURCC ('Y','V','1','2')), + GST_PROPS_FOURCC (GST_MAKE_FOURCC ('Y','U','Y','V')) ), "height", GST_PROPS_INT_RANGE (16, 4096), NULL diff --git a/tests/props.c b/tests/props.c index a0f66bd321..8a9d3bb2b5 100644 --- a/tests/props.c +++ b/tests/props.c @@ -10,8 +10,8 @@ static GstPropsFactory mpeg2dec_sink_props = { static GstPropsFactory mpeg2dec_src_props = { "fourcc", GST_PROPS_LIST ( - GST_PROPS_FOURCC ('Y','V','1','2'), - GST_PROPS_FOURCC_INT (0x56595559) + GST_PROPS_FOURCC (GST_MAKE_FOURCC ('Y','V','1','2')), + GST_PROPS_FOURCC (GST_MAKE_FOURCC ('Y','U','Y','2')) ), "width", GST_PROPS_INT_RANGE (16, 4096), "height", GST_PROPS_INT_RANGE (16, 4096), @@ -51,8 +51,8 @@ int main(int argc,char *argv[]) gst_props_new ("framed", GST_PROPS_BOOLEAN (TRUE), "mpegtest", GST_PROPS_BOOLEAN (FALSE), "hello", GST_PROPS_LIST ( - GST_PROPS_FOURCC_INT (0X5555), - GST_PROPS_FOURCC_INT (0X6666) + GST_PROPS_FOURCC (GST_MAKE_FOURCC (0,0,0x55,0x55)), + GST_PROPS_FOURCC (GST_MAKE_FOURCC (0,0,0x66,0x66)) ), NULL)); } @@ -61,7 +61,7 @@ int main(int argc,char *argv[]) gst_props_save_thyself (testprops, parent); sinkprops = gst_props_set (sinkprops, "mpegtype", GST_PROPS_INT (1)); - sinkprops = gst_props_set (sinkprops, "foobar", GST_PROPS_FOURCC_INT (0x56565656)); + sinkprops = gst_props_set (sinkprops, "foobar", GST_PROPS_FOURCC (GST_MAKE_FOURCC (0x56, 0x56,0x56,0x56))); g_print ("%08lx\n", gst_props_get_fourcc_int (sinkprops, "foobar")); g_print ("%d\n", gst_props_get_int (sinkprops, "mpegtype"));