pad: unlock before freeing the cache to avoid deadlock

https://bugzilla.gnome.org/show_bug.cgi?id=648199
This commit is contained in:
Havard Graff 2011-04-19 14:05:23 +02:00 committed by Tim-Philipp Müller
parent 38dcd41b97
commit 547d451772

View file

@ -4718,8 +4718,8 @@ slow_path:
}
invalid:
{
pad_free_cache (cache);
GST_PAD_STREAM_UNLOCK (peer);
pad_free_cache (cache);
goto slow_path;
}
}
@ -4830,8 +4830,8 @@ slow_path:
}
invalid:
{
pad_free_cache (cache);
GST_PAD_STREAM_UNLOCK (peer);
pad_free_cache (cache);
goto slow_path;
}
}