How to know when I can send a new event
Tim-Philipp Müller
t.i.m at zen.co.uk
Sat Jul 13 14:04:34 PDT 2013
On Sat, 2013-07-13 at 14:07 +0200, Marco Trapanese wrote:
> I periodically send a step event in this way:
>
> QGst::StepEventPtr evt = QGst::StepEvent::create(QGst::FormatBuffers, 1,
> 1.0, TRUE, FALSE);
> m_pipeline->sendEvent(evt);
>
> When I call this piece of code too fast the video hangs. I guess it's
> because I request a new event before the previous has been completed.
>
> How to know that so I don't send the next one?
You should get STEP_START and STEP_DONE messages on the pipeline's
GstBus, I think.
Cheers
-Tim
More information about the gstreamer-devel
mailing list