[gst-devel] Pipeline paused, inside elements don't?
José Luis Segura Lucas
josel.segura at gmx.es
Sat Jan 8 11:25:03 CET 2011
I have discover the mistake:
I was changing the state using gobject functions (as gobject.idle_add).
Changing the state with "set_state" pased to gobject.idle_add, the
set_state is called again and again because it alwys return something
different to "False".
I wrote a little wrapper that, in the case that the state change is
succesful, it returns True and gobject.idle_add stops to call the
set_state func.
El Wed, 5 Jan 2011 20:58:30 +0100
José Luis Segura Lucas <josel.segura at gmx.es> escribió:
> Good afternoon!
>
> Some time ago I wrote a source and a sink elements using the Python
> bindings of Gstreamer.
>
> A few days ago, I come back to this code and, after a few tests, I see
> something estrange: when I set the pipeline state to "paused", my sink
> element continue on "playing" state.
>
> I wrote the sink element as a subclass of the "gst.BaseSink" Python
> class. The only thing that is supposed to do using that class is
> overwrite the "do_render" method.
>
> Do I need to do something more to set the element state to paused?
>
> Thanks in advance and best regards
More information about the gstreamer-devel
mailing list