]> granicus.if.org Git - handbrake/commitdiff
LinGui: load builtin-presets if I fail reading the presets file
authorjstebbins <jstebbins.hb@gmail.com>
Wed, 29 Jul 2015 22:39:46 +0000 (22:39 +0000)
committerjstebbins <jstebbins.hb@gmail.com>
Wed, 29 Jul 2015 22:39:46 +0000 (22:39 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7385 b64f7644-9d1e-0410-96f1-a4d463321fa5

gtk/src/presets.c

index 6a6d030df1abe4322b79afa5fe10bd8bd5c26eb0..5db88440bf7b0502188a004aadd0cbaa4bf6d2ba 100644 (file)
@@ -1524,7 +1524,9 @@ ghb_presets_load(signal_user_data_t *ud)
     {
         if (presets_add_config_file("presets") < 0)
         {
-            g_warning("Failed to read preset file");
+            ghb_log("Failed to read preset file, initailizing new presets...");
+            hb_presets_builtin_update();
+            store_presets();
         }
     }
 }