Fwd: EOS on shmsink hangs while waiting for someone to connect

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

Fwd: EOS on shmsink hangs while waiting for someone to connect

Nezer Zaidenberg
Hi All 

I am using the shmsink element, but it seems that it ignores an EOS if it is waiting for someone to connect to it.
Is there any way to make it always accept EOS (even if waiting for someone to connect) - without using wait-for-connection=false?

Thanks
   Nezer
 

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Fwd: EOS on shmsink hangs while waiting for someone to connect

Arjen Veenhuizen
Interestingly, I ran into the same problem today (using GStreamer 1.9.x). The mentioned pipeline still exhibits the same behaviour (stuck at waiting for EOS). The same behaviour is observed in my python application which is pretty bad since this causes a memory leak on application close.

gst-launch-1.0 -e fakesrc ! shmsink socket-path=/tmp/encoded
Setting pipeline to PAUSED ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
^Chandling interrupt.
Interrupt: Stopping pipeline ...
EOS on shutdown enabled -- Forcing EOS on the pipeline
Waiting for EOS...
^Chandling interrupt.
Interrupt: Stopping pipeline ...
Interrupt while waiting for EOS - stopping pipeline...
Execution ended after 0:00:22.614863547
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

Notice that I needed to hit control+c twice. Is this a bug or am I wrong to conclude that we need an explicit EOS in order not to leak any memory?