From 547d4517720ceb6068cdbd3921af426741c1fb83 Mon Sep 17 00:00:00 2001 From: Havard Graff Date: Tue, 19 Apr 2011 14:05:23 +0200 Subject: [PATCH] pad: unlock before freeing the cache to avoid deadlock https://bugzilla.gnome.org/show_bug.cgi?id=648199 --- gst/gstpad.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/gstpad.c b/gst/gstpad.c index 5a1cb80..a599d42 100644 --- a/gst/gstpad.c +++ b/gst/gstpad.c @@ -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; } } -- 2.7.4