mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 13:41:48 +00:00
gst-libs/gst/gconf/gconf.c: Don't lock an unassigned variable.
Original commit message from CVS: * gst-libs/gst/gconf/gconf.c: (gst_bin_find_unconnected_pad): Don't lock an unassigned variable.
This commit is contained in:
parent
75f866efae
commit
8326cc5387
2 changed files with 8 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
2005-05-18 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
||||
|
||||
* gst-libs/gst/gconf/gconf.c: (gst_bin_find_unconnected_pad):
|
||||
Don't lock an unassigned variable.
|
||||
|
||||
2005-05-18 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
||||
|
||||
* gst/playback/gstplaybasebin.c: (gen_preroll_element):
|
||||
|
|
|
@ -67,14 +67,14 @@ gst_bin_find_unconnected_pad (GstBin * bin, GstPadDirection direction)
|
|||
|
||||
/* check if the direction matches */
|
||||
if (GST_PAD_DIRECTION (testpad) == direction) {
|
||||
GST_LOCK (pad);
|
||||
GST_LOCK (testpad);
|
||||
if (GST_PAD_PEER (testpad) == NULL) {
|
||||
GST_UNLOCK (pad);
|
||||
GST_UNLOCK (testpad);
|
||||
/* found it ! */
|
||||
pad = testpad;
|
||||
break;
|
||||
}
|
||||
GST_UNLOCK (pad);
|
||||
GST_UNLOCK (testpad);
|
||||
}
|
||||
pads = g_list_next (pads);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue