gst-validate-scenario: Add GST_VALIDATE_SCENARIO_EOS_HANDLING_LOCK
authorAlicia Boya García <ntrrgc@gmail.com>
Sat, 9 Feb 2019 00:16:31 +0000 (01:16 +0100)
committerThibault Saunier <tsaunier@gnome.org>
Mon, 11 Feb 2019 14:15:30 +0000 (14:15 +0000)
commit1d4801d679099e12834420d8667d98a903f49ed5
tree1e305699939b2a4c3dc4adfc07e70d1571a482de
parent5a2e2d50018b91c3a06123a60da350fa319ce009
gst-validate-scenario: Add GST_VALIDATE_SCENARIO_EOS_HANDLING_LOCK

There was a race in appsrc-push when the pushed buffer caused an EOS.
The EOS event could be handled by the main thread, finishing the test
while the action, executing in the streaming thread, has not finished
yet.

A mutex is now introduced to add mutual exclusion for the two threads so
that an EOS does not cause the termination of the test while the action
is still going.
validate/gst/validate/gst-validate-scenario.c
validate/gst/validate/gst-validate-scenario.h