Fix warnings

Original commit message from CVS:
Fix warnings
This commit is contained in:
Ronald S. Bultje 2003-04-13 09:25:52 +00:00
parent 6f6f339f3c
commit 04cd7ede0f

View file

@ -263,8 +263,10 @@ make_links (graph_t *g, GError **error)
b = c->sink_pads;
caps = c->caps;
gst_caps_ref (caps);
gst_caps_sink (caps);
if (caps) {
gst_caps_ref (caps);
gst_caps_sink (caps);
}
gst_caps_debug (caps, "foo");
/* g_print ("a: %p, b: %p\n", a, b); */
@ -367,7 +369,9 @@ make_links (graph_t *g, GError **error)
}
}
next:
gst_caps_unref (caps);
if (caps) {
gst_caps_unref (caps);
}
l = g_list_next (l);
}