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  <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.
This commit is contained in:
Zaheer Abbas Merali 2007-03-08 17:58:57 +00:00
parent 0c16a9954e
commit 953db65b3b
3 changed files with 9 additions and 2 deletions

View file

@ -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> 2007-03-08 Wim Taymans <wim@fluendo.com>
* tools/gst-launch.c: (event_loop): * tools/gst-launch.c: (event_loop):

2
common

@ -1 +1 @@
Subproject commit 7c5a0ab68de1fed4e5a1fd473160debc2c4c7b89 Subproject commit ea828a478fe11561881a6eaf1f7bf2b0b77c8c85

View file

@ -366,7 +366,8 @@ gst_identity_check_perfect (GstIdentity * identity, GstBuffer * buf)
} }
offset = GST_BUFFER_OFFSET (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, GST_WARNING_OBJECT (identity,
"Buffer not data-contiguous with previous one: " "Buffer not data-contiguous with previous one: "
"prev offset_end %" G_GINT64_FORMAT ", new offset %" "prev offset_end %" G_GINT64_FORMAT ", new offset %"