Use gst_sample_unref to unref GstSample in tutorials
This commit is contained in:
parent
6cf853997a
commit
a20b2cc27a
@ -189,7 +189,7 @@ static void new_sample (GstElement *sink, CustomData *data) {
|
|||||||
if (sample) {
|
if (sample) {
|
||||||
/* The only thing we do in this example is print a * to indicate a received buffer */
|
/* The only thing we do in this example is print a * to indicate a received buffer */
|
||||||
g_print ("*");
|
g_print ("*");
|
||||||
gst_buffer_unref (sample);
|
gst_sample_unref (sample);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user