static GstFlowReturn new_buffer(GstAppSink * sink, gpointer data) { GStreamerFramesReceiver * pClass = (GStreamerFramesReceiver*) data; GstSample * sample = gst_app_sink_pull_sample(sink); GstFlowReturn res = frame_handler(sample, pClass); gst_sample_unref(sample); return res; }
void game_frame() { frame_handler(); }