diff options
author | John Stebbins <[email protected]> | 2017-01-02 11:06:36 -0700 |
---|---|---|
committer | John Stebbins <[email protected]> | 2017-01-03 17:03:56 -0700 |
commit | 0d1fec639aee17804285fdf7e7d99f8e92769e6e (patch) | |
tree | 8c482688bd9184594956dd2e53e4aea506ff8999 /gtk | |
parent | 7afd2d7c5cd3078a99701d73eb6445c3a1d70808 (diff) |
libhb: allow removal of tags
Setting an empty string tag allows removal of existing tags.
Note that setting a NULL string does not remove an existing tag but
instead results in the tag getting passed through from the source.
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/src/callbacks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c index 28ac08f9a..a83e5495e 100644 --- a/gtk/src/callbacks.c +++ b/gtk/src/callbacks.c @@ -1827,7 +1827,7 @@ static void update_meta(GhbValue *settings, const char *name, const char *val) { GhbValue *metadata = ghb_get_job_metadata_settings(settings); - if (val == NULL || val[0] == 0) + if (val == NULL) ghb_dict_remove(metadata, name); else ghb_dict_set_string(metadata, name, val); |