mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
tracer/latency: clear qdata
When reading the qdata, clear it to avoid it being read and unreffed again. Fixes #774332
This commit is contained in:
parent
b6e3a0a2dc
commit
cfb6c7d4f5
1 changed files with 5 additions and 2 deletions
|
@ -149,9 +149,12 @@ calculate_latency (GstElement * parent, GstPad * pad, guint64 ts)
|
|||
GST_OBJECT_FLAG_IS_SET (parent, GST_ELEMENT_FLAG_SINK)) {
|
||||
GstEvent *ev = g_object_get_qdata ((GObject *) pad, latency_probe_id);
|
||||
|
||||
if (ev) {
|
||||
g_object_set_qdata ((GObject *) pad, latency_probe_id, NULL);
|
||||
log_latency (gst_event_get_structure (ev), pad, ts);
|
||||
gst_event_unref (ev);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue