Pipeline Not Shut Down After End of Stream

Tim-Philipp Müller t.i.m at zen.co.uk
Thu May 16 00:51:12 PDT 2013


On Wed, 2013-05-15 at 16:15 -0700, johnwesting wrote:

Hi,

> My pipeline doesn't close after the end of stream event is pushed out. I'm
> pretty sure I've narrowed the cause down to my decoder, but I feel like I'm
> shooting in the dark debugging. I have a live source which uses GstBaseSrc.
> The source blocks in the create() function waiting for data. Before any data
> is received if an error occurs while it is waiting, it returns
> GST_FLOW_UNEXPECTED. When this error occurs before the source has created
> any data the pipeline does not shutdown. I think I've narrowed it down to my
> decoder because when I replaced my decoder with filesink the pipeline did
> close down. In the decoder I tried handling the EOS event on the sink pad
> using gst_pad_event_default() but it didn't fix it. Not sure what to try
> next.

What does the rest of your pipeline look like? Are there any
decodebin/playbin involved?

I would dump a GST_DEBUG=*:6 output to a file, then grep -i eos to trace
the EOS event and see where it gets stuck / not propagated.

 Cheers
  -Tim



More information about the gstreamer-devel mailing list