diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2009-03-16 15:31:44 +0100 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2009-03-16 15:31:44 +0100 |
commit | ce9360b9fd0be4ed2a0d096ec5dd53c51db3d4ea (patch) | |
tree | 2018b6251faefcad311007bc3ac8f88a26a29f35 /tests | |
parent | 04a860c6f7d1d6cc704cb8212457df735fdbbee7 (diff) |
examples: fix g_object_set() value type.
Make sure we cast the length value as a gint64 to the vararg g_object_set() just
incase sizeof(gsize) != sizeof(gint64).
Diffstat (limited to 'tests')
-rw-r--r-- | tests/examples/app/appsrc-ra.c | 2 | ||||
-rw-r--r-- | tests/examples/app/appsrc-seekable.c | 2 | ||||
-rw-r--r-- | tests/examples/app/appsrc-stream.c | 2 | ||||
-rw-r--r-- | tests/examples/app/appsrc-stream2.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/tests/examples/app/appsrc-ra.c b/tests/examples/app/appsrc-ra.c index aa4962fe5..2f1232b73 100644 --- a/tests/examples/app/appsrc-ra.c +++ b/tests/examples/app/appsrc-ra.c @@ -125,7 +125,7 @@ found_source (GObject * object, GObject * orig, GParamSpec * pspec, App * app) /* we can set the length in appsrc. This allows some elements to estimate the * total duration of the stream. It's a good idea to set the property when you * can but it's not required. */ - g_object_set (app->appsrc, "size", app->length, NULL); + g_object_set (app->appsrc, "size", (gint64) app->length, NULL); g_object_set (app->appsrc, "stream-type", 2, NULL); /* configure the appsrc, we will push a buffer to appsrc when it needs more diff --git a/tests/examples/app/appsrc-seekable.c b/tests/examples/app/appsrc-seekable.c index 7137d13e1..27de6db66 100644 --- a/tests/examples/app/appsrc-seekable.c +++ b/tests/examples/app/appsrc-seekable.c @@ -128,7 +128,7 @@ found_source (GObject * object, GObject * orig, GParamSpec * pspec, App * app) /* we can set the length in appsrc. This allows some elements to estimate the * total duration of the stream. It's a good idea to set the property when you * can but it's not required. */ - g_object_set (app->appsrc, "size", app->length, NULL); + g_object_set (app->appsrc, "size", (gint64) app->length, NULL); /* we are seekable in push mode, this means that the element usually pushes * out buffers of an undefined size and that seeks happen only occasionally * and only by request of the user. */ diff --git a/tests/examples/app/appsrc-stream.c b/tests/examples/app/appsrc-stream.c index 870d707c7..7038cd306 100644 --- a/tests/examples/app/appsrc-stream.c +++ b/tests/examples/app/appsrc-stream.c @@ -151,7 +151,7 @@ found_source (GObject * object, GObject * orig, GParamSpec * pspec, App * app) /* we can set the length in appsrc. This allows some elements to estimate the * total duration of the stream. It's a good idea to set the property when you * can but it's not required. */ - g_object_set (app->appsrc, "size", app->length, NULL); + g_object_set (app->appsrc, "size", (gint64) app->length, NULL); /* configure the appsrc, we will push data into the appsrc from the * mainloop. */ diff --git a/tests/examples/app/appsrc-stream2.c b/tests/examples/app/appsrc-stream2.c index 866b0504c..dc1d8caa2 100644 --- a/tests/examples/app/appsrc-stream2.c +++ b/tests/examples/app/appsrc-stream2.c @@ -123,7 +123,7 @@ found_source (GObject * object, GObject * orig, GParamSpec * pspec, App * app) /* we can set the length in appsrc. This allows some elements to estimate the * total duration of the stream. It's a good idea to set the property when you * can but it's not required. */ - g_object_set (app->appsrc, "size", app->length, NULL); + g_object_set (app->appsrc, "size", (gint64) app->length, NULL); /* configure the appsrc, we will push a buffer to appsrc when it needs more * data */ |