From 953db65b3b9748b85f2a2a6aff6276d3eae3d9ed Mon Sep 17 00:00:00 2001 From: Zaheer Abbas Merali Date: Thu, 8 Mar 2007 17:58:57 +0000 Subject: [PATCH] plugins/elements/gstidentity.c: Fix check for perfect stream to ignore buffers with -1 offsets/offset ends when check... Original commit message from CVS: 2007-03-08 Zaheer Abbas Merali * plugins/elements/gstidentity.c: (gst_identity_check_perfect): Fix check for perfect stream to ignore buffers with -1 offsets/offset ends when checking data contiguity. --- ChangeLog | 6 ++++++ common | 2 +- plugins/elements/gstidentity.c | 3 ++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index de069b0..e5f43c5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-03-08 Zaheer Abbas Merali + + * plugins/elements/gstidentity.c: (gst_identity_check_perfect): + Fix check for perfect stream to ignore buffers with -1 + offsets/offset ends when checking data contiguity. + 2007-03-08 Wim Taymans * tools/gst-launch.c: (event_loop): diff --git a/common b/common index 7c5a0ab..ea828a4 160000 --- a/common +++ b/common @@ -1 +1 @@ -Subproject commit 7c5a0ab68de1fed4e5a1fd473160debc2c4c7b89 +Subproject commit ea828a478fe11561881a6eaf1f7bf2b0b77c8c85 diff --git a/plugins/elements/gstidentity.c b/plugins/elements/gstidentity.c index 1f31d66..52a920d 100644 --- a/plugins/elements/gstidentity.c +++ b/plugins/elements/gstidentity.c @@ -366,7 +366,8 @@ 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 != G_MAXUINT64 && offset != G_MAXUINT64) { GST_WARNING_OBJECT (identity, "Buffer not data-contiguous with previous one: " "prev offset_end %" G_GINT64_FORMAT ", new offset %" -- 2.7.4