summaryrefslogtreecommitdiff
path: root/tests/examples/app/appsrc-seekable.c
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 /tests/examples/app/appsrc-seekable.c
parent9bf8277d135e818ce502ad1dd9956929382f136c (diff)
examples: use new method to set flags
Use the new core method for setting object enum properties by name.
Diffstat (limited to 'tests/examples/app/appsrc-seekable.c')
-rw-r--r--tests/examples/app/appsrc-seekable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/examples/app/appsrc-seekable.c b/tests/examples/app/appsrc-seekable.c
index 27de6db66..e09a58e1a 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 */