NV12 issue in 1.14.1

tobatrance henning.hinze at mail.de
Mon Jul 30 13:34:13 UTC 2018


So I copied the callback

GstPadProbeReturn appsink_query_cb(GstPad *pad_G_GNUC_UNUSED,
GstPadProbeInfo *_info, gpointer user_data_G_GNUC_UNUSED) {
	GstQuery *query = reinterpret_cast<GstQuery*>(_info->data);

	if(GST_QUERY_TYPE(query) != GST_QUERY_ALLOCATION) {
		return GST_PAD_PROBE_OK;
	}

	gst_query_add_allocation_meta(query, GST_VIDEO_META_API_TYPE, NULL);

	return GST_PAD_PROBE_HANDLED;
}

from kmscube and add the probe while constructing the pipeline

GstPad *pad = gst_element_get_static_pad(videosink, "sink");
gst_pad_add_probe(pad, GST_PAD_PROBE_TYPE_QUERY_DOWNSTREAM,
appsink_query_cb, NULL, NULL);
gst_object_unref(pad);

but still don't get any GstVideoMeta with my buffers. Any hint?



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list