projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e5d8f3
)
Fix new_sample signal handler so the example works
author
Jan Schmidt
<jan@centricular.com>
Mon, 5 Jun 2017 04:32:36 +0000
(14:32 +1000)
committer
Jan Schmidt
<jan@centricular.com>
Mon, 5 Jun 2017 04:32:36 +0000
(14:32 +1000)
examples/tutorials/basic-tutorial-8.c
patch
|
blob
|
history
diff --git
a/examples/tutorials/basic-tutorial-8.c
b/examples/tutorials/basic-tutorial-8.c
index
558ac2d
..
1ab3bf6
100644
(file)
--- 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 */