mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 08:11:16 +00:00
Fix new_sample signal handler so the example works
This commit is contained in:
parent
8e5d8f3f98
commit
3be8a37124
1 changed files with 3 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue