rtspconnection: make gst_rtsp_watch_queue_message() thread-safe
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 31 Mar 2009 16:52:44 +0000 (17:52 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 31 Mar 2009 17:30:57 +0000 (18:30 +0100)
commitfc8c5cba157c67b36e0c8f8e1e172988826ba308
treec7c5a55e2bc274e04fbad3a795a7562f1a17b16b
parentdfe96ce6188693fe3bef16407bb0b87b85afbbe9
rtspconnection: make gst_rtsp_watch_queue_message() thread-safe

People might queue messages from a thread other than the thread in which
the main context which this watch is attached is iterated from, so use
a GAsyncQueue instead of a GList, so g_list_append() doesn't trample
over list nodes just freed in the other thread. This just fixes issues
I've had with gst-rtsp-server. We might need more locking in various
places here.
gst-libs/gst/rtsp/gstrtspconnection.c