summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2007-12-18 23:17:14 +0000
committerTim-Philipp Müller <tim@centricular.net>2007-12-18 23:17:14 +0000
commit8188edf4a676ea406c253d6e2069f4e1665038c8 (patch)
treea78ffc2f9e6af9b44f6793400dba7d2a165f4416
parent587583b4febb45b3f5f694d0c94fe73c7882c013 (diff)
tests/check/elements/avisubtitle.c: Small unit test fix (has no practical impact at the moment, since we're only feed...
Original commit message from CVS: * tests/check/elements/avisubtitle.c: (check_correct_buffer): Small unit test fix (has no practical impact at the moment, since we're only feeding utf8 and hence just create a sub- buffer for the output).
-rw-r--r--ChangeLog7
-rw-r--r--tests/check/elements/avisubtitle.c3
2 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index a18bd166..16d231cf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-12-18 Tim-Philipp Müller <tim at centricular dot net>
+
+ * tests/check/elements/avisubtitle.c: (check_correct_buffer):
+ Small unit test fix (has no practical impact at the moment,
+ since we're only feeding utf8 and hence just create a sub-
+ buffer for the output).
+
2007-12-18 Thijs Vermeir <thijsvermeir@gmail.com>
* gst/avi/gstavisubtitle.c:
diff --git a/tests/check/elements/avisubtitle.c b/tests/check/elements/avisubtitle.c
index 51a2dd4a..52f8586a 100644
--- a/tests/check/elements/avisubtitle.c
+++ b/tests/check/elements/avisubtitle.c
@@ -139,7 +139,8 @@ check_correct_buffer (guint8 * src_data, guint src_size, guint8 * dst_data,
"Seeking is not possible when there is no buffer yet");
fail_unless (gst_pad_push (mysrcpad, buffer) == GST_FLOW_OK,
"not accepted a correct buffer");
- ASSERT_BUFFER_REFCOUNT (buffer, "inbuffer", 1);
+ /* we gave away our reference to the buffer, don't assume anything */
+ buffer = NULL;
/* a new buffer is created in the list */
fail_unless (g_list_length (buffers) == 1,
"No new buffer in the buffers list");