pad: flip the G_UNLIKELY

Its likely that we have caps and unlikely (error) otherwise.
This commit is contained in:
Stefan Kost 2009-10-07 11:12:57 +03:00
parent 18a903e93d
commit 201cbbdce0

View file

@ -2635,7 +2635,7 @@ intersect_caps_func (GstPad * pad, GValue * ret, GstPad * orig)
existing = g_value_get_pointer (ret);
peercaps = gst_pad_peer_get_caps (pad);
if (G_UNLIKELY (peercaps)) {
if (G_LIKELY (peercaps)) {
g_value_set_pointer (ret, gst_caps_intersect (existing, peercaps));
gst_caps_unref (existing);
gst_caps_unref (peercaps);