mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
gststructure: simplify return statement in gst_structure_can_intersect
https://bugzilla.gnome.org/show_bug.cgi?id=662777
This commit is contained in:
parent
afc80c10d1
commit
d9901a6288
1 changed files with 2 additions and 5 deletions
|
@ -3096,11 +3096,8 @@ gst_structure_can_intersect (const GstStructure * struct1,
|
|||
return FALSE;
|
||||
|
||||
/* tries to intersect if we have the field in both */
|
||||
if (G_UNLIKELY (!gst_structure_foreach ((GstStructure *) struct1,
|
||||
gst_caps_structure_can_intersect_field, (gpointer) struct2)))
|
||||
return FALSE;
|
||||
|
||||
return TRUE;
|
||||
return gst_structure_foreach ((GstStructure *) struct1,
|
||||
gst_caps_structure_can_intersect_field, (gpointer) struct2);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
|
Loading…
Reference in a new issue