validate: media-descriptor: remove duplicate conditions

when comparing tags, two conditions in if an else if are same
the correct way is to first check if both are NULL and return.
changed the condition accordingly.

https://bugzilla.gnome.org/show_bug.cgi?id=748390
This commit is contained in:
Vineeth TM 2015-07-22 16:32:06 +09:00 committed by Nicolas Dufresne
parent f020c41d41
commit 2a5ff3f3c8

View file

@ -216,7 +216,7 @@ compare_tags (GstMediaDescriptor * ref, StreamNode * rstream,
rtags = rstream->tags;
ctags = cstream->tags;
if (rtags == NULL && ctags)
if (!rtags && !ctags)
return 1;
else if (!rtags && ctags) {
GList *taglist;