mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
tracer: latency: Remove redundant if conditions
This commit is contained in:
parent
780bf26e43
commit
e128c7310c
1 changed files with 7 additions and 11 deletions
|
@ -411,11 +411,9 @@ do_push_event_pre (GstTracer * self, guint64 ts, GstPad * pad, GstEvent * ev)
|
|||
if (GST_OBJECT_FLAG_IS_SET (peer_parent, GST_ELEMENT_FLAG_SINK)) {
|
||||
/* store event so that we can calculate latency when the buffer that
|
||||
* follows has been processed */
|
||||
if (!g_object_get_qdata ((GObject *) pad, latency_probe_id)) {
|
||||
GST_DEBUG ("%s_%s: Storing latency event", GST_DEBUG_PAD_NAME (pad));
|
||||
g_object_set_qdata ((GObject *) pad, latency_probe_id,
|
||||
gst_event_ref (ev));
|
||||
}
|
||||
GST_DEBUG ("%s_%s: Storing latency event", GST_DEBUG_PAD_NAME (pad));
|
||||
g_object_set_qdata ((GObject *) pad, latency_probe_id,
|
||||
gst_event_ref (ev));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -437,12 +435,10 @@ do_push_event_pre (GstTracer * self, guint64 ts, GstPad * pad, GstEvent * ev)
|
|||
if (!g_str_equal (value_element_id, element_id) ||
|
||||
!g_str_equal (value_element_name, element_name) ||
|
||||
!g_str_equal (value_pad_name, pad_name)) {
|
||||
if (!g_object_get_qdata ((GObject *) pad, sub_latency_probe_id)) {
|
||||
GST_DEBUG ("%s_%s: Storing sub-latency event",
|
||||
GST_DEBUG_PAD_NAME (pad));
|
||||
g_object_set_qdata ((GObject *) pad, sub_latency_probe_id,
|
||||
gst_event_ref (ev));
|
||||
}
|
||||
GST_DEBUG ("%s_%s: Storing sub-latency event",
|
||||
GST_DEBUG_PAD_NAME (pad));
|
||||
g_object_set_qdata ((GObject *) pad, sub_latency_probe_id,
|
||||
gst_event_ref (ev));
|
||||
}
|
||||
|
||||
g_free (pad_name);
|
||||
|
|
Loading…
Reference in a new issue