# Gst::Element.planying?

**URL:** <https://www.ruby-forum.com/t/gst-element-planying/168702>\
**Category:** Ruby-Gnome 2\
**Created:** [May 24, 2009, 5:57pm UTC](https://www.ruby-forum.com/t/gst-element-planying/168702 "2009-05-24T17:57:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [May 24, 2009, 5:57pm UTC](https://www.ruby-forum.com/t/gst-element-planying/168702/1 "2009-05-24T17:57:55Z")

</div>

Hi,

the docs for Gst::Element show the methodes  
paused?  
playing?  
ready?

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.

Cheers, detlef

–  
[http://det.cable.nu](http://det.cable.nu)

---

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [May 26, 2009, 12:45pm UTC](https://www.ruby-forum.com/t/gst-element-planying/168702/2 "2009-05-26T12:45:26Z")

</div>

Hi,

2009/5/25 Detlef R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> the docs for Gst::Element show the methodes  
> paused?  
> playing?  
> ready?
> 
> 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”  
even if  
“element.paused?” is true:

if element.paused?  
# something  
end

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  
directory  
after we implement all methods in gstreamer/test/. We also need help  
for the task.

## Thanks,

kou
