diff options
author | Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com> | 2015-11-18 23:20:59 -0800 |
---|---|---|
committer | Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com> | 2015-11-18 23:20:59 -0800 |
commit | 7d7bab464019d8b27af3fb70c3e4c8b81013a82e (patch) | |
tree | 6a754a67bc83a221fbdb32f8ac94323e76116cbb | |
parent | cc2c53bdde6be3d8d400ec9772c78979b8691aa9 (diff) | |
download | gstreamer-plugins-ugly-7d7bab464019d8b27af3fb70c3e4c8b81013a82e.tar.gz |
x264enc: drop unnecessary NULL check before g_free
-rw-r--r-- | ext/x264/gstx264enc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/x264/gstx264enc.c b/ext/x264/gstx264enc.c index dd1236c2..1ca61f46 100644 --- a/ext/x264/gstx264enc.c +++ b/ext/x264/gstx264enc.c @@ -2347,8 +2347,7 @@ gst_x264_enc_set_property (GObject * object, guint prop_id, encoder->sync_lookahead); break; case ARG_MULTIPASS_CACHE_FILE: - if (encoder->mp_cache_file) - g_free (encoder->mp_cache_file); + g_free (encoder->mp_cache_file); encoder->mp_cache_file = g_value_dup_string (value); g_string_append_printf (encoder->option_string, ":stats=%s", encoder->mp_cache_file); |