mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 20:51:13 +00:00
tracers: latency: allow for non parented pads to send latency probes
Such a setup is used in rtspsrc for its TCP connection https://bugzilla.gnome.org/show_bug.cgi?id=793478
This commit is contained in:
parent
81a767bbdb
commit
7fad93d035
1 changed files with 4 additions and 2 deletions
|
@ -114,8 +114,10 @@ log_latency (const GstStructure * data, GstPad * sink_pad, guint64 sink_ts)
|
||||||
static void
|
static void
|
||||||
send_latency_probe (GstElement * parent, GstPad * pad, guint64 ts)
|
send_latency_probe (GstElement * parent, GstPad * pad, guint64 ts)
|
||||||
{
|
{
|
||||||
if (parent && (!GST_IS_BIN (parent)) &&
|
/* allow for non-parented pads to send latency probes as used in e.g.
|
||||||
GST_OBJECT_FLAG_IS_SET (parent, GST_ELEMENT_FLAG_SOURCE)) {
|
* rtspsrc for TCP connections */
|
||||||
|
if (!parent || (!GST_IS_BIN (parent) &&
|
||||||
|
GST_OBJECT_FLAG_IS_SET (parent, GST_ELEMENT_FLAG_SOURCE))) {
|
||||||
GstEvent *latency_probe = gst_event_new_custom (GST_EVENT_CUSTOM_DOWNSTREAM,
|
GstEvent *latency_probe = gst_event_new_custom (GST_EVENT_CUSTOM_DOWNSTREAM,
|
||||||
gst_structure_new_id (latency_probe_id,
|
gst_structure_new_id (latency_probe_id,
|
||||||
latency_probe_pad, GST_TYPE_PAD, pad,
|
latency_probe_pad, GST_TYPE_PAD, pad,
|
||||||
|
|
Loading…
Reference in a new issue