filter: Release lock in filter functions
authorWim Taymans <wtaymans@redhat.com>
Thu, 10 Jul 2014 09:32:20 +0000 (11:32 +0200)
committerWim Taymans <wtaymans@redhat.com>
Thu, 10 Jul 2014 09:36:55 +0000 (11:36 +0200)
commit945c93fde09b461d4b810846e2a9443f915e6507
treec3598f6eb9c3bf435d034a3b57f52327bdf2e934
parent6543082d2b6eb75da4bddc5b43aa24e759123fae
filter: Release lock in filter functions

Release the object lock before calling the filter functions. We need to
keep a cookie to detect when the list changed during the filter
callback. We also keep a hashtable to make sure we only call the filter
function once for each object in case of concurrent modification.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=732950
gst/rtsp-server/rtsp-client.c
gst/rtsp-server/rtsp-server.c
gst/rtsp-server/rtsp-session-pool.c
gst/rtsp-server/rtsp-session.c
gst/rtsp-server/rtsp-stream.c