summaryrefslogtreecommitdiff
path: root/gst/gststructure.c
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2011-10-30 09:31:39 +0000
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2011-10-30 09:31:39 +0000
commit002446820e90534e09823f6d98f2f13951cb3b75 (patch)
tree24af63075f07a30831bbc2620a99a17110013cf8 /gst/gststructure.c
parent948980bf11e47841c2dcf4385a833541d96a095a (diff)
parent911c078c2bb1fbd2597e72efdefc2d3cdd3fc2d0 (diff)
Merge remote-tracking branch 'origin/master' into 0.11
Diffstat (limited to 'gst/gststructure.c')
-rw-r--r--gst/gststructure.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gst/gststructure.c b/gst/gststructure.c
index f561a50ae..4ed2472ac 100644
--- a/gst/gststructure.c
+++ b/gst/gststructure.c
@@ -2964,6 +2964,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;
}