2009/5/25 Detlef R. firstname.lastname@example.org:
the docs for Gst::Element show the methodes
but they are not implemented in the current SVN. Only in
gstreamer/test/tc_element.rb are tests for them.
Were they never implemented or removed? I think, they are handy.
They will not be implemeted.
I forgot the detail but the reason why they were removed is that they
are not safe.
GStreamer is a multi threaded library.
In the following code, “element” may not be “paused” in “# something”
“element.paused?” is true:
Element’s state may be changed in other thread.
GStreamer provides a signal to handle state change. (Sorry. I forgot
the signal name)
You should use the signal to handle state change safely.
I’m sorry if the description is not correct.
I don’t have an environment to confirm the case…
P.S. gstreamer/tests/ directory is deprecated. We will remove the
after we implement all methods in gstreamer/test/. We also need help
for the task.