summaryrefslogtreecommitdiff
path: root/tests/examples/app/appsrc-seekable.c
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2008-12-15 12:02:26 +0000
committerWim Taymans <wim.taymans@gmail.com>2008-12-15 12:02:26 +0000
commit24685b5df0d33947caa26b4d34aea51fb9cd653b (patch)
treefdfa433e02386cb4fb013803392fed5233e87155 /tests/examples/app/appsrc-seekable.c
parentedafefaecf52d219e169542d1b8cb091a5e97220 (diff)
examples/app/: Fix example to unref after emiting the push-buffer action.
Original commit message from CVS: * examples/app/appsrc-ra.c: (feed_data): * examples/app/appsrc-seekable.c: (feed_data): * examples/app/appsrc-stream.c: (read_data): * examples/app/appsrc-stream2.c: (feed_data): Fix example to unref after emiting the push-buffer action. * gst-libs/gst/app/gstappsrc.c: (gst_app_src_class_init), (gst_app_src_push_buffer_full), (gst_app_src_push_buffer), (gst_app_src_push_buffer_action): Don't take the ref on the buffer in push-buffer action because it's too awkward for bindings. Fixes #564482.
Diffstat (limited to 'tests/examples/app/appsrc-seekable.c')
-rw-r--r--tests/examples/app/appsrc-seekable.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/examples/app/appsrc-seekable.c b/tests/examples/app/appsrc-seekable.c
index e0325888c..7137d13e1 100644
--- a/tests/examples/app/appsrc-seekable.c
+++ b/tests/examples/app/appsrc-seekable.c
@@ -95,6 +95,7 @@ feed_data (GstElement * appsrc, guint size, App * app)
GST_DEBUG ("feed buffer %p, offset %" G_GUINT64_FORMAT "-%u", buffer,
app->offset, len);
g_signal_emit_by_name (app->appsrc, "push-buffer", buffer, &ret);
+ gst_buffer_unref (buffer);
app->offset += len;