srt: Clean up locking
authorJan Alexander Steffens (heftig) <jsteffens@make.tv>
Wed, 18 Mar 2020 16:55:38 +0000 (17:55 +0100)
committerJan Alexander Steffens (heftig) <jsteffens@make.tv>
Wed, 15 Apr 2020 08:42:47 +0000 (10:42 +0200)
commitd2d00e07acc2b1ab1ae5a728ef5dc33c9dee7869
tree73d840bc0c57e7e3ba673cbc560b3d85575efb99
parent37ee3899134725f85ffe1605cf4204ec7c2c58d3
srt: Clean up locking

Use GST_OBJECT_LOCK (srtobject->element) to protect only the fields
involved in property access.

Introduce a new mutex srtobject->sock_lock to go with
srtobject->sock_cond and protect the list of callers from concurrent
access.
ext/srt/gstsrtobject.c
ext/srt/gstsrtobject.h
ext/srt/gstsrtsink.c
ext/srt/gstsrtsrc.c