mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
pad: flip the G_UNLIKELY
Its likely that we have caps and unlikely (error) otherwise.
This commit is contained in:
parent
18a903e93d
commit
201cbbdce0
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue