summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/examples/app/appsrc-ra.c2
-rw-r--r--tests/examples/app/appsrc-seekable.c2
-rw-r--r--tests/examples/app/appsrc-stream.c2
-rw-r--r--tests/examples/app/appsrc-stream2.c2
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 */