plugins/elements/gstidentity.c: Fix check for perfect stream to ignore buffers with...
authorZaheer Abbas Merali <zaheerabbas@merali.org>
Thu, 8 Mar 2007 17:58:57 +0000 (17:58 +0000)
committerZaheer Abbas Merali <zaheerabbas@merali.org>
Thu, 8 Mar 2007 17:58:57 +0000 (17:58 +0000)
Original commit message from CVS:
2007-03-08  Zaheer Abbas Merali  <zaheerabbas at merali dot org>

* 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
common
plugins/elements/gstidentity.c

index de069b0de7ef3291895ea09b2af76e3cedf71bc7..e5f43c5fc3caa633f2b058f1917d91e8d1b72805 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-03-08  Zaheer Abbas Merali  <zaheerabbas at merali dot org>
+
+       * 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  <wim@fluendo.com>
 
        * tools/gst-launch.c: (event_loop):
diff --git a/common b/common
index 7c5a0ab68de1fed4e5a1fd473160debc2c4c7b89..ea828a478fe11561881a6eaf1f7bf2b0b77c8c85 160000 (submodule)
--- a/common
+++ b/common
@@ -1 +1 @@
-Subproject commit 7c5a0ab68de1fed4e5a1fd473160debc2c4c7b89
+Subproject commit ea828a478fe11561881a6eaf1f7bf2b0b77c8c85
index 1f31d668c28a7a6e7ec2b20d86b7d6e1a71d85c7..52a920ddf754603330e988bb482d799eaab43cf6 100644 (file)
@@ -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 %"