mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 20:59:44 +00:00
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:
parent
10b8cb7e8f
commit
ee177d64c5
2 changed files with 8 additions and 0 deletions
|
@ -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>
|
2006-07-31 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
* gst/gstpad.c: (gst_pad_class_init), (gst_pad_dispose),
|
* gst/gstpad.c: (gst_pad_class_init), (gst_pad_dispose),
|
||||||
|
|
|
@ -2054,6 +2054,7 @@ gst_pad_get_fixed_caps_func (GstPad * pad)
|
||||||
|
|
||||||
g_return_val_if_fail (GST_IS_PAD (pad), NULL);
|
g_return_val_if_fail (GST_IS_PAD (pad), NULL);
|
||||||
|
|
||||||
|
GST_OBJECT_LOCK (pad);
|
||||||
if (GST_PAD_CAPS (pad)) {
|
if (GST_PAD_CAPS (pad)) {
|
||||||
result = 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 ();
|
result = gst_caps_new_empty ();
|
||||||
|
|
||||||
done:
|
done:
|
||||||
|
GST_OBJECT_UNLOCK (pad);
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue