projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49f24e2
)
tests: don't set caps on unwritable buffers
author
Wim Taymans
<wim.taymans@collabora.co.uk>
Wed, 5 Aug 2009 11:48:40 +0000
(13:48 +0200)
committer
Wim Taymans
<wim.taymans@collabora.co.uk>
Thu, 6 Aug 2009 08:53:01 +0000
(10:53 +0200)
Take the ref after setting the caps on a buffer because else the buffer is
techinically not writable.
tests/check/gst/gstpad.c
patch
|
blob
|
history
diff --git
a/tests/check/gst/gstpad.c
b/tests/check/gst/gstpad.c
index a3a6f676673c9f57732f0f812a5b2d4b326aa336..832287af4b31d5540ea1deca95b2da3df79a5360 100644
(file)
--- a/
tests/check/gst/gstpad.c
+++ b/
tests/check/gst/gstpad.c
@@
-580,8
+580,8
@@
GST_START_TEST (test_push_negotiation)
/* Should fail if src pad caps are incompatible with sink pad caps */
gst_pad_set_caps (src, caps);
- gst_buffer_ref (buffer);
gst_buffer_set_caps (buffer, caps);
+ gst_buffer_ref (buffer);
fail_unless (gst_pad_push (src, buffer) == GST_FLOW_NOT_NEGOTIATED);
ASSERT_MINI_OBJECT_REFCOUNT (buffer, "buffer", 1);
gst_buffer_unref (buffer);