[gst-devel] How to pause a playbin after the first frame is displayed?

Stefan Kost ensonic at hora-obscura.de
Thu Dec 17 23:27:23 CET 2009


Am 17.12.2009 12:47, schrieb Vladimir Eremeev:
> 
> Hi all. 
> I am rather new to GStreamer and developing a player with simple editing
> capabilities (cut and merge).
> This is going to be an ActiveX control.
> 
> The previous version of this player was developed with DirectShow, and I
> must copy its behavior as much exactly as possible.
> 
> Now I need an analog of StopWhenReady functionality. 
> This function stops the DS graph after it displays the first frame.
> How can I implement this?

This is the paused state in gstreamer:
gst_element_set_state(pipeline, GST_STATE_PAUSED);

register a signal handler to the message bus of the pipeline and wait for the
READY_TO_PAUSED state change message for the pipeline.

Stefan




More information about the gstreamer-devel mailing list