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.
This commit is contained in:
Wim Taymans 2006-07-31 14:23:26 +00:00
parent 10b8cb7e8f
commit ee177d64c5
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2006-07-31 Wim Taymans <wim@fluendo.com>
* gst/gstutils.c: (gst_pad_get_fixed_caps_func):
Protect _PAD_CAPS with OBJECT_LOCK.
2006-07-31 Wim Taymans <wim@fluendo.com>
* gst/gstpad.c: (gst_pad_class_init), (gst_pad_dispose),

View file

@ -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;
}