summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2009-03-24 19:41:06 +0100
committerWim Taymans <wim.taymans@collabora.co.uk>2009-03-24 19:41:06 +0100
commitb6fdf68dc0f7b25c769a2d23dbe434eb2b469067 (patch)
treed44a58a8d87a70a29555f7b0a264c82ed0aa4cfc
parent9bf8277d135e818ce502ad1dd9956929382f136c (diff)
examples: use new method to set flags
Use the new core method for setting object enum properties by name.
-rw-r--r--tests/examples/app/appsrc-ra.c3
-rw-r--r--tests/examples/app/appsrc-seekable.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/tests/examples/app/appsrc-ra.c b/tests/examples/app/appsrc-ra.c
index 2f1232b7..973dabea 100644
--- a/tests/examples/app/appsrc-ra.c
+++ b/tests/examples/app/appsrc-ra.c
@@ -126,7 +126,8 @@ found_source (GObject * object, GObject * orig, GParamSpec * pspec, App * app)
* 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", (gint64) app->length, NULL);
- g_object_set (app->appsrc, "stream-type", 2, NULL);
+ gst_util_set_object_arg (G_OBJECT (app->appsrc), "stream-type",
+ "random-access");
/* configure the appsrc, we will push a buffer to appsrc when it needs more
* data */
diff --git a/tests/examples/app/appsrc-seekable.c b/tests/examples/app/appsrc-seekable.c
index 27de6db6..e09a58e1 100644
--- a/tests/examples/app/appsrc-seekable.c
+++ b/tests/examples/app/appsrc-seekable.c
@@ -132,7 +132,7 @@ found_source (GObject * object, GObject * orig, GParamSpec * pspec, App * app)
/* 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. */
- g_object_set (app->appsrc, "stream-type", 1, NULL);
+ gst_util_set_object_arg (G_OBJECT (app->appsrc), "stream-type", "seekable");
/* configure the appsrc, we will push a buffer to appsrc when it needs more
* data */