gstpad: use hook_id instead of hook in called_probes list
authorHavard Graff <havard.graff@gmail.com>
Sun, 28 Oct 2018 11:46:09 +0000 (12:46 +0100)
committerHavard Graff <havard.graff@gmail.com>
Tue, 6 Nov 2018 09:04:00 +0000 (10:04 +0100)
commit4b3872f7570caa4501345a28bf1cec031ff886ac
tree48935dc0f817713e01348658e99a192eff906c57
parentddfcc28c8b8f35f2adb6fab91e96786a63b8dadf
gstpad: use hook_id instead of hook in called_probes list

A pointer to a hook in this list can easily not be unique, given both
the slice-allocator reusing memory, and the OS re-using freed blocks
in malloc.

By doing many repeated add and remove of probes, this becomes very easily
reproduced.

Instead use hook_id, which *is* unique for a added GHook.
gst/gstpad.c
tests/check/gst/gstpad.c