From ee177d64c5427f8e9cf00fddad5985c7004766cf Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 31 Jul 2006 14:23:26 +0000 Subject: [PATCH] gst/gstutils.c: Protect _PAD_CAPS with OBJECT_LOCK. Original commit message from CVS: * gst/gstutils.c: (gst_pad_get_fixed_caps_func): Protect _PAD_CAPS with OBJECT_LOCK. --- ChangeLog | 5 +++++ gst/gstutils.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 8c272f75f1..7eb13bf64d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-07-31 Wim Taymans + + * gst/gstutils.c: (gst_pad_get_fixed_caps_func): + Protect _PAD_CAPS with OBJECT_LOCK. + 2006-07-31 Wim Taymans * gst/gstpad.c: (gst_pad_class_init), (gst_pad_dispose), diff --git a/gst/gstutils.c b/gst/gstutils.c index 23dab25297..6714f0ad59 100644 --- a/gst/gstutils.c +++ b/gst/gstutils.c @@ -2054,6 +2054,7 @@ gst_pad_get_fixed_caps_func (GstPad * pad) g_return_val_if_fail (GST_IS_PAD (pad), NULL); + GST_OBJECT_LOCK (pad); if (GST_PAD_CAPS (pad)) { result = GST_PAD_CAPS (pad); @@ -2078,6 +2079,8 @@ gst_pad_get_fixed_caps_func (GstPad * pad) result = gst_caps_new_empty (); done: + GST_OBJECT_UNLOCK (pad); + return result; }