baseparse: don't deadlock when setting external index
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 19 Apr 2011 12:05:53 +0000 (13:05 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 19 Apr 2011 12:05:53 +0000 (13:05 +0100)
commitb35d54dcd1afb11dd70356e67f4d95441be6d74d
tree3733af6e829d3042fd3d4a615cb3e9f494cbf747
parentc364539620a4ebd421673e5a0e371dad17a24448
baseparse: don't deadlock when setting external index

Protect index with its own lock. gst_index_get_writer_id() may take
the object lock internally (the default resolver, GST_INDEX_RESOLVER_PATH,
will anyway), so if we're using that to protect the index as well,
we'll deadlock.

https://bugzilla.gnome.org/show_bug.cgi?id=646811
libs/gst/base/gstbaseparse.c