appsrc: Always take the mutex before flushing the queue
authorSebastian Dröge <sebastian@centricular.com>
Wed, 9 Sep 2015 09:33:02 +0000 (12:33 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 9 Sep 2015 09:33:02 +0000 (12:33 +0300)
commit8613525301b93202de0e7ff63eea9367582e7262
tree5579fc7ab9f6b524c344df47781e9ebdefa7e78d
parentbbe967a2780469daac99d5f599bd54b41651aff0
appsrc: Always take the mutex before flushing the queue

Otherwise the application might push new buffers into the queue while we're
flushing, potentially causing the GQueue data structure to become inconsistent
and causing crashes soon after.

https://bugzilla.gnome.org/show_bug.cgi?id=754597
gst-libs/gst/app/gstappsrc.c