From: Stefan Kost Date: Fri, 21 Nov 2008 20:57:16 +0000 (+0000) Subject: plugins/elements/gstidentity.c: Don't warning on offset==-1. Taken from _check_imperf... X-Git-Tag: GIT_CONVERSION~53 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9e501b274fd0d2bedc235c4c82f4413727250f1b;p=platform%2Fupstream%2Fgstreamer.git plugins/elements/gstidentity.c: Don't warning on offset==-1. Taken from _check_imperfect_offset(). Original commit message from CVS: * plugins/elements/gstidentity.c: Don't warning on offset==-1. Taken from _check_imperfect_offset(). --- diff --git a/ChangeLog b/ChangeLog index 1d332f6..fd02d74 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-11-21 Stefan Kost + + * plugins/elements/gstidentity.c: + Don't warning on offset==-1. Taken from _check_imperfect_offset(). + 2008-11-21 Michael Smith * plugins/elements/gstfilesrc.c: diff --git a/plugins/elements/gstidentity.c b/plugins/elements/gstidentity.c index 98a54f6..d2ed277 100644 --- a/plugins/elements/gstidentity.c +++ b/plugins/elements/gstidentity.c @@ -410,7 +410,9 @@ gst_identity_check_perfect (GstIdentity * identity, GstBuffer * buf) } offset = GST_BUFFER_OFFSET (buf); - if (identity->prev_offset_end != offset) { + if (identity->prev_offset_end != offset && + identity->prev_offset_end != GST_BUFFER_OFFSET_NONE && + offset != GST_BUFFER_OFFSET_NONE) { GST_WARNING_OBJECT (identity, "Buffer not data-contiguous with previous one: " "prev offset_end %" G_GINT64_FORMAT ", new offset %"