encoding-profile: Check for FALSE'ness directly, not by comparing with FALSE
authorSebastian Dröge <sebastian@centricular.com>
Tue, 29 Dec 2015 15:56:21 +0000 (17:56 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 29 Dec 2015 15:56:21 +0000 (17:56 +0200)
gst-libs/gst/pbutils/encoding-profile.c

index e613cbf..81bffd3 100644 (file)
@@ -1448,8 +1448,8 @@ parse_encoding_profile (const gchar * value)
     }
 
     if (res) {
-      if (gst_encoding_container_profile_add_profile
-          (GST_ENCODING_CONTAINER_PROFILE (res), profile) == FALSE) {
+      if (!gst_encoding_container_profile_add_profile
+          (GST_ENCODING_CONTAINER_PROFILE (res), profile)) {
         g_warning ("Can not create a preset for caps: %s", strcaps_v[i]);
 
         return NULL;