summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/app/appsrc-ra.c1
-rw-r--r--examples/app/appsrc-seekable.c1
-rw-r--r--examples/app/appsrc-stream.c1
-rw-r--r--examples/app/appsrc-stream2.c1
4 files changed, 4 insertions, 0 deletions
diff --git a/examples/app/appsrc-ra.c b/examples/app/appsrc-ra.c
index 1611616e..aa4962fe 100644
--- a/examples/app/appsrc-ra.c
+++ b/examples/app/appsrc-ra.c
@@ -92,6 +92,7 @@ feed_data (GstElement * appsrc, guint size, App * app)
GST_DEBUG ("feed buffer %p, offset %" G_GUINT64_FORMAT "-%u", buffer,
app->offset, size);
g_signal_emit_by_name (app->appsrc, "push-buffer", buffer, &ret);
+ gst_buffer_unref (buffer);
app->offset += size;
diff --git a/examples/app/appsrc-seekable.c b/examples/app/appsrc-seekable.c
index e0325888..7137d13e 100644
--- a/examples/app/appsrc-seekable.c
+++ b/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;
diff --git a/examples/app/appsrc-stream.c b/examples/app/appsrc-stream.c
index d5edceb8..870d707c 100644
--- a/examples/app/appsrc-stream.c
+++ b/examples/app/appsrc-stream.c
@@ -102,6 +102,7 @@ read_data (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);
if (ret != GST_FLOW_OK) {
/* some error, stop sending data */
return FALSE;
diff --git a/examples/app/appsrc-stream2.c b/examples/app/appsrc-stream2.c
index 8f691a2e..866b0504 100644
--- a/examples/app/appsrc-stream2.c
+++ b/examples/app/appsrc-stream2.c
@@ -102,6 +102,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;