ruby-gnome2/ruby-gnome2 — Issue #86: Gstreamer: test_caps test fails
Author: mtasaka
Created: 2011-12-29 17:29:48+00:00
State: open

With the last git and gstreamer 1.0.3, test_caps test fails like

GStreamer-CRITICAL **: gst_buffer_set_caps: assertion `caps == NULL || GST_CAPS_IS_SIMPLE (caps)' failed
E

Error:
test_caps(TestBuffer):
ArgumentError: invalid argument Object (expect Gst::Caps)
/home/tasaka1/rpmbuild/TEMP/ruby-gnome2/ruby-gnome2/gstreamer/test/test_buffer.rb:69:in `test_caps'

: (0.004639)

With this commit:
http://cgit.freedesktop.org/gstreamer/gstreamer/commit/gst/gstbuffer.c?id=59209b18915e28c0716375a157ca11cd146d9e1c
gst_buffer_set_caps() now fails if caps is "not simple", so caps created with gst_caps_new_any() cannot be passed to gst_buffer_set_caps() directly.