Commit be4635cf authored by Ingo Randolf's avatar Ingo Randolf Committed by Sebastian Dröge

examples: test-appsrc: fix buffer leak

parent 4370f3a9
......@@ -50,6 +50,7 @@ need_data (GstElement * appsrc, guint unused, MyContext * ctx)
ctx->timestamp += GST_BUFFER_DURATION (buffer);
g_signal_emit_by_name (appsrc, "push-buffer", buffer, &ret);
gst_buffer_unref(buffer);
}
/* called when a new media pipeline is constructed. We can query the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment