Use gst_sample_unref to unref GstSample in tutorials

This commit is contained in:
Nicolas Dufresne 2017-12-07 19:48:43 -05:00
parent 6cf853997a
commit a20b2cc27a

View file

@ -189,7 +189,7 @@ static void new_sample (GstElement *sink, CustomData *data) {
if (sample) {
/* The only thing we do in this example is print a * to indicate a received buffer */
g_print ("*");
gst_buffer_unref (sample);
gst_sample_unref (sample);
}
}