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:
Ronald S. Bultje 2005-05-18 15:54:00 +00:00
parent 75f866efae
commit 8326cc5387
2 changed files with 8 additions and 3 deletions

View file

@ -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):

View file

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