Sync Video and Audio
killerrats
koreysjunkmail at gmail.com
Wed Sep 5 18:12:29 UTC 2018
Is this the correct way of doing this?
GstPadProbeType ProbeType = GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM;
gulong id = gst_pad_add_probe(gst_element_get_static_pad(h264parse, "sink"),
ProbeType, Check_buffer_pts_probe, NULL, NULL);
GstPadProbeReturn Check_buffer_pts_probe(GstPad* pad, GstPadProbeInfo* info,
gpointer user_data)
{
if (GST_EVENT_TYPE(GST_PAD_PROBE_INFO_DATA(info)) == GST_EVENT_EOS)
{
return GST_PAD_PROBE_OK;
}
GstBuffer * buffer = gst_pad_probe_info_get_buffer(info);
GST_BUFFER_PTS(buffer) = GST_BUFFER_DTS(buffer);
return GST_PAD_PROBE_OK;
}
-----
------------------------------
Gstreamer 1.14.1
------------------------------
Windows
--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
More information about the gstreamer-devel
mailing list