summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>2015-11-14 16:54:42 -0800
committerReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>2015-11-15 01:43:08 -0800
commit97a94b02ae9ff0de75a1db16429cc2bce9690112 (patch)
tree05a7942162321cc7c208682e25b92b0be02525e9
parentc9039751f135d22fcb62a17848a8db00229422e3 (diff)
vp8enc: remove unnecessary NULL check before g_free()
-rw-r--r--ext/vpx/gstvp8enc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/vpx/gstvp8enc.c b/ext/vpx/gstvp8enc.c
index a53819266..0ba3d1b89 100644
--- a/ext/vpx/gstvp8enc.c
+++ b/ext/vpx/gstvp8enc.c
@@ -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: