summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Sauer <ensonic@users.sf.net>2014-10-20 16:39:38 +0200
committerStefan Sauer <ensonic@users.sf.net>2014-10-20 16:39:38 +0200
commit9a66e3169f227573f7d68ffdc6f09a36176e1a5f (patch)
treefa1227abbd4a8258fc1b2b09363ce5ecd9736292
parentd33440b51ef13830ffc9aefbd884c9faffd25cd6 (diff)
identity: include the actual delta in the message
Including the actual delta in the message makes it easy to see, if the new buffer is behind or ahead and how much.
-rw-r--r--plugins/elements/gstidentity.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/elements/gstidentity.c b/plugins/elements/gstidentity.c
index dbc9494e4f..94f6db7103 100644
--- a/plugins/elements/gstidentity.c
+++ b/plugins/elements/gstidentity.c
@@ -380,6 +380,7 @@ gst_identity_check_imperfect_timestamp (GstIdentity * identity, GstBuffer * buf)
/*
* "imperfect-timestamp" bus message:
* @identity: the identity instance
+ * @delta: the GST_CLOCK_DIFF to the prev timestamp
* @prev-timestamp: the previous buffer timestamp
* @prev-duration: the previous buffer duration
* @prev-offset: the previous buffer offset
@@ -396,6 +397,7 @@ gst_identity_check_imperfect_timestamp (GstIdentity * identity, GstBuffer * buf)
gst_element_post_message (GST_ELEMENT (identity),
gst_message_new_element (GST_OBJECT (identity),
gst_structure_new ("imperfect-timestamp",
+ "delta", G_TYPE_INT64, dt,
"prev-timestamp", G_TYPE_UINT64,
identity->prev_timestamp, "prev-duration", G_TYPE_UINT64,
identity->prev_duration, "prev-offset", G_TYPE_UINT64,