summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sourceforge.net>2008-11-21 20:57:16 +0000
committerStefan Kost <ensonic@users.sourceforge.net>2008-11-21 20:57:16 +0000
commit9e501b274fd0d2bedc235c4c82f4413727250f1b (patch)
treefe388ce7db3c05dcacbbef53ad4fc5a5760dd5d6 /plugins
parent42c08ab20fab4ddfbf085c0fb3f4250fc607263c (diff)
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().
Diffstat (limited to 'plugins')
-rw-r--r--plugins/elements/gstidentity.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/elements/gstidentity.c b/plugins/elements/gstidentity.c
index 98a54f6fb0..d2ed277af7 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 %"