ges: Fix sending EOS on testclip when using timeoverlay

Basically when using timeoverlay we where waiting for input-selector
to receive EOS on its active on the output-selector streaming thread
but... EOS was being sent from that same thread waiting for input-selector
to unblock to send EOS on its other pad.

In our specific use case we want EOS to be sent only on the active pad.

Fixes: https://gitlab.freedesktop.org/gstreamer/gst-editing-services/-/issues/103
This commit is contained in:
Thibault Saunier 2020-04-09 10:00:43 -04:00
parent 4a9e2c8984
commit 5fd0943c77

View file

@ -302,6 +302,7 @@ ges_video_test_source_create_overlay (GESVideoTestSource * self)
GstPad *tmppad;
CREATE_ELEMENT (os, "output-selector");
gst_util_set_object_arg (G_OBJECT (os), "pad-negotiation-mode", "active");
CREATE_ELEMENT (is, "input-selector");
CREATE_ELEMENT (tcstamper, "timecodestamper");
CREATE_ELEMENT (toverlay, "timeoverlay");