From 3be8a37124a9df30a4e3b36ab24956fdd9b052b9 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Mon, 5 Jun 2017 14:32:36 +1000 Subject: [PATCH] Fix new_sample signal handler so the example works --- examples/tutorials/basic-tutorial-8.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/tutorials/basic-tutorial-8.c b/examples/tutorials/basic-tutorial-8.c index 558ac2d683..1ab3bf664a 100644 --- a/examples/tutorials/basic-tutorial-8.c +++ b/examples/tutorials/basic-tutorial-8.c @@ -87,7 +87,7 @@ static void stop_feed (GstElement *source, CustomData *data) { } /* The appsink has received a buffer */ -static void new_sample (GstElement *sink, CustomData *data) { +static GstFlowReturn new_sample (GstElement *sink, CustomData *data) { GstSample *sample; /* Retrieve the buffer */ @@ -97,6 +97,8 @@ static void new_sample (GstElement *sink, CustomData *data) { g_print ("*"); gst_sample_unref (sample); } + + return GST_FLOW_OK; } /* This function is called when an error message is posted on the bus */