diff options
author | Vineeth TM <vineeth.tm@samsung.com> | 2015-07-22 16:32:06 +0900 |
---|---|---|
committer | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2015-07-30 15:09:00 -0400 |
commit | 2a5ff3f3c8dbc0edd57c3d19a2963639a80b0056 (patch) | |
tree | b8aa39a668708d223aa34e5e6a803690b24a4df7 | |
parent | f020c41d41358af35da09ce5127c722df1d9845e (diff) |
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
-rw-r--r-- | validate/gst/validate/media-descriptor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/validate/gst/validate/media-descriptor.c b/validate/gst/validate/media-descriptor.c index 8ac7524..8b1de1f 100644 --- a/validate/gst/validate/media-descriptor.c +++ b/validate/gst/validate/media-descriptor.c @@ -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; |