gstpad: Make calls to GstPadActivateFunction MT-safe
authorEdward Hervey <edward@centricular.com>
Thu, 16 Nov 2017 07:26:12 +0000 (08:26 +0100)
committerEdward Hervey <bilboed@bilboed.com>
Thu, 16 Nov 2017 07:29:22 +0000 (08:29 +0100)
commit80262013ca553fa5b35e5c638893d3512a3dd7dc
treea00d18dbce72f74fa304ac3f2f6110f808a10e83
parent7595c38a738abf830d3cccf5b31a38fc9ca6f6a6
gstpad: Make calls to GstPadActivateFunction MT-safe

checking whether we already were in the target GstPadMode was being
done too early and there was the risk that we *would* end up
(de)activating a pad more than once.

Instead, re-do the check for pad mode when entering the final pad
(de)activation block.

https://bugzilla.gnome.org/show_bug.cgi?id=790431
gst/gstpad.c