basesrc: Make sure to always hold the LIVE_LOCK when going to the flushing label

https://bugzilla.gnome.org/show_bug.cgi?id=728596
This commit is contained in:
Sebastian Dröge 2014-04-20 11:59:02 +02:00
parent e71d192e6d
commit d75068d6cf

View file

@ -2628,10 +2628,12 @@ gst_base_src_loop (GstPad * pad)
if (gst_pad_check_reconfigure (pad)) {
if (!gst_base_src_negotiate (src)) {
gst_pad_mark_reconfigure (pad);
if (GST_PAD_IS_FLUSHING (pad))
if (GST_PAD_IS_FLUSHING (pad)) {
GST_LIVE_LOCK (src);
goto flushing;
else
} else {
goto negotiate_failed;
}
}
}