vp8enc: remove unnecessary NULL check before g_free()
authorReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
Sun, 15 Nov 2015 00:54:42 +0000 (16:54 -0800)
committerReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
Sun, 15 Nov 2015 09:43:08 +0000 (01:43 -0800)
ext/vpx/gstvp8enc.c

index a53819266a46ef70560c51c041eb05e18e3e4192..0ba3d1b89acba95d9339940c89b3e3a4e79c7d3b 100644 (file)
@@ -911,8 +911,7 @@ gst_vp8_enc_set_property (GObject * object, guint prop_id,
       global = TRUE;
       break;
     case PROP_MULTIPASS_CACHE_FILE:
-      if (gst_vp8_enc->multipass_cache_prefix)
-        g_free (gst_vp8_enc->multipass_cache_prefix);
+      g_free (gst_vp8_enc->multipass_cache_prefix);
       gst_vp8_enc->multipass_cache_prefix = g_value_dup_string (value);
       break;
     case PROP_TS_NUMBER_LAYERS: