pause to play hangs
Marco Trapanese
marcotrapanese at gmail.com
Thu Jul 10 01:41:07 PDT 2014
After seeing some examples it seems it's correct to set the pipeline
state to PAUSED or PLAYING directly.
But I still have the problem. I checked for any error on GstBus but I
didn't find any.
What could I do to investigate further?
Thanks!
Marco
--
Il 09/07/2014 08:39, Marco Trapanese ha scritto:
> Hello,
> I have a playbin pipeline in C++.
> I created this two functions:
>
> void QPlayer::pause() {
> if (m_pipeline) gst_element_set_state(GST_ELEMENT(m_pipeline),
> GST_STATE_PAUSED);
> }
>
> void QPlayer::resume(){
> if (m_pipeline) gst_element_set_state(GST_ELEMENT(m_pipeline),
> GST_STATE_PLAYING);
> }
>
>
> in order to pause and restart the video playing.
> It works but sometime when I switch back to the PLAYING state the
> video hangs.
>
> What's the right way to pause and restart a pipeline?
> Thanks!
> Marco
>
More information about the gstreamer-devel
mailing list