From dab34ba05e2f388fee370c6348dd4564407cf4c3 Mon Sep 17 00:00:00 2001 From: Zaheer Abbas Merali Date: Tue, 20 Mar 2007 14:25:15 +0000 Subject: [PATCH] plugins/elements/gstidentity.c (gst_identity_check_imperfect_offset): So we should use correct constants for checking... Original commit message from CVS: * plugins/elements/gstidentity.c (gst_identity_check_imperfect_offset): So we should use correct constants for checking for None offset. --- ChangeLog | 5 +++++ plugins/elements/gstidentity.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d3dd2b7042..ec084a5e1b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-03-20 Zaheer Abbas Merali + + * plugins/elements/gstidentity.c (gst_identity_check_imperfect_offset): + So we should use correct constants for checking for None offset. + 2007-03-20 Wim Taymans * docs/design/part-block.txt: diff --git a/plugins/elements/gstidentity.c b/plugins/elements/gstidentity.c index 06c360994c..b91a19c9f7 100644 --- a/plugins/elements/gstidentity.c +++ b/plugins/elements/gstidentity.c @@ -431,7 +431,8 @@ gst_identity_check_imperfect_offset (GstIdentity * identity, GstBuffer * buf) offset = GST_BUFFER_OFFSET (buf); if (identity->prev_offset_end != offset && - identity->prev_offset_end != G_MAXUINT64 && offset != G_MAXUINT64) { + identity->prev_offset_end != GST_BUFFER_OFFSET_NONE && + offset != GST_BUFFER_OFFSET_NONE) { /* * "imperfect-offset" bus message: * @identity: the identity instance