pad-monitor: Safely store expected seek values
authorEdward Hervey <edward@centricular.com>
Mon, 10 Apr 2017 05:58:01 +0000 (07:58 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Mon, 10 Apr 2017 07:15:50 +0000 (09:15 +0200)
commitb156616b5c424ee2c5d2f9aa6d233106f3fe97a4
treeb6707fac247b64c82deb1e7e3ed7f8c2f948505a
parenta4da90b8db6f30c47b1f981aff42904bb3e9dacd
pad-monitor: Safely store expected seek values

Protect the expected seek values with the same lock as the one
that will be used to read/validate the resulting segments and flush
values.

Avoids races with duplicated seeks (i.e. a seek that was already
sent and handled via another pad, such as in demuxers).

https://bugzilla.gnome.org/show_bug.cgi?id=781112
validate/gst/validate/gst-validate-pad-monitor.c