Pausing pipeline is causing error

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Pausing pipeline is causing error

Andreas Schuler
Hi all,

I have been struggling with this issue for some time now. My setup looks as follows:
  • 2 fakesrc components, which are injecting encoded audio and video data
  • Sources are connected to a multiqueue
  • Queue is connected to two decoding bins
  • Standard audio and video rendering tails (i.e. convert filters, rendering sinks etc.) are connected to decoding bin source pads

I am starting the pipeline using the following command (m_bin is of type GstPipeline):

gst_element_set_state (m_bin, GST_STATE_PLAYING);

This works fine and my content is getting played back. Then I am attempting to pause the pipeline using this code:

gst_element_set_state (m_bin, GST_STATE_PAUSED);

I have a bus listener and can confirm that I get the state change on the pipeline itself. About 3 seconds after getting that message, I get another one on the bus of type GST_MESSAGE_ERROR. The message reads (there are no debug details provided):

"Pipeline is still running, stop first or wait for pending stop."

I have been grepping the GStreamer code for some time now but could not find that (or parts of) string.

After this error it seems impossible to restart the pipeline.

I was wondering whether anyone could tell me what I am missing.


Thanks,

Andreas







-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Pausing pipeline is causing error

Andreas Schuler
Replying to myself because I have just realized that the issue is with my own code. I had code in the function starting (i.e. resuming after a pause) the pipeline, which tested whether the pipeline was already running. So the error message came from my own logic and makes perfect sense now.

Sorry for spamming.

Andreas

On Wed, Apr 30, 2008 at 12:04 PM, Andreas Schuler <[hidden email]> wrote:
Hi all,

I have been struggling with this issue for some time now. My setup looks as follows:
  • 2 fakesrc components, which are injecting encoded audio and video data
  • Sources are connected to a multiqueue
  • Queue is connected to two decoding bins
  • Standard audio and video rendering tails (i.e. convert filters, rendering sinks etc.) are connected to decoding bin source pads

I am starting the pipeline using the following command (m_bin is of type GstPipeline):

gst_element_set_state (m_bin, GST_STATE_PLAYING);

This works fine and my content is getting played back. Then I am attempting to pause the pipeline using this code:

gst_element_set_state (m_bin, GST_STATE_PAUSED);

I have a bus listener and can confirm that I get the state change on the pipeline itself. About 3 seconds after getting that message, I get another one on the bus of type GST_MESSAGE_ERROR. The message reads (there are no debug details provided):

"Pipeline is still running, stop first or wait for pending stop."

I have been grepping the GStreamer code for some time now but could not find that (or parts of) string.

After this error it seems impossible to restart the pipeline.

I was wondering whether anyone could tell me what I am missing.


Thanks,

Andreas








-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel