summaryrefslogtreecommitdiffstats
path: root/gtk/src/presets.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2009-02-11 00:34:03 +0000
committerjstebbins <[email protected]>2009-02-11 00:34:03 +0000
commite6fa09bc4f3b7b093454e34805ae491d3f5ab71d (patch)
treeda4518fbc26f7e2e27830d85f69455101f284472 /gtk/src/presets.c
parentae6f965cd5438c9e9c09f3d6270ef811ecc94035 (diff)
LinGui: fix problem with writing null values to presets file
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2137 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/presets.c')
-rw-r--r--gtk/src/presets.c39
1 files changed, 0 insertions, 39 deletions
diff --git a/gtk/src/presets.c b/gtk/src/presets.c
index 5cbab837d..dd186f8da 100644
--- a/gtk/src/presets.c
+++ b/gtk/src/presets.c
@@ -139,37 +139,6 @@ ghb_preset_path_string(const GValue *path)
return str;
}
-static void
-debug_show_type(GType tp)
-{
- const gchar *str = "unknown";
- if (tp == G_TYPE_STRING)
- {
- str ="string";
- }
- else if (tp == G_TYPE_INT)
- {
- str ="int";
- }
- else if (tp == G_TYPE_INT64)
- {
- str ="int64";
- }
- else if (tp == G_TYPE_BOOLEAN)
- {
- str ="bool";
- }
- else if (tp == ghb_array_get_type())
- {
- str ="array";
- }
- else if (tp == ghb_dict_get_type())
- {
- str ="dict";
- }
- g_message("Type: %s", str);
-}
-
void
dump_preset_path(const gchar *msg, const GValue *path)
{
@@ -1941,29 +1910,21 @@ export_value_xlat(GValue *dict)
gval = export_value_xlat2(detel_xlat, lin_val, G_TYPE_INT);
if (gval)
ghb_dict_insert(dict, g_strdup(key), gval);
- else
- ghb_dict_insert(dict, g_strdup(key), ghb_value_dup(lin_val));
key = "PictureDecomb";
lin_val = ghb_dict_lookup(dict, key);
gval = export_value_xlat2(decomb_xlat, lin_val, G_TYPE_INT);
if (gval)
ghb_dict_insert(dict, g_strdup(key), gval);
- else
- ghb_dict_insert(dict, g_strdup(key), ghb_value_dup(lin_val));
key = "PictureDeinterlace";
lin_val = ghb_dict_lookup(dict, key);
gval = export_value_xlat2(deint_xlat, lin_val, G_TYPE_INT);
if (gval)
ghb_dict_insert(dict, g_strdup(key), gval);
- else
- ghb_dict_insert(dict, g_strdup(key), ghb_value_dup(lin_val));
key = "PictureDenoise";
lin_val = ghb_dict_lookup(dict, key);
gval = export_value_xlat2(denoise_xlat, lin_val, G_TYPE_INT);
if (gval)
ghb_dict_insert(dict, g_strdup(key), gval);
- else
- ghb_dict_insert(dict, g_strdup(key), ghb_value_dup(lin_val));
key = "Subtitles";
lin_val = ghb_dict_lookup(dict, key);
gval = export_subtitle_xlat2(lin_val);