mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 23:58:17 +00:00
structure: identical structures are definitely equal
This commit is contained in:
parent
1aa5b76a6f
commit
bc1a37e64f
1 changed files with 3 additions and 0 deletions
|
@ -2946,6 +2946,9 @@ gst_structure_is_equal (const GstStructure * structure1,
|
|||
g_return_val_if_fail (GST_IS_STRUCTURE (structure1), FALSE);
|
||||
g_return_val_if_fail (GST_IS_STRUCTURE (structure2), FALSE);
|
||||
|
||||
if (G_UNLIKELY (structure1 == structure2))
|
||||
return TRUE;
|
||||
|
||||
if (structure1->name != structure2->name) {
|
||||
return FALSE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue