]> granicus.if.org Git - handbrake/commitdiff
LinGui: fix additional mingw gtk UI build issues
authorJohn Stebbins <jstebbins.hb@gmail.com>
Wed, 17 Apr 2019 15:33:31 +0000 (09:33 -0600)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Wed, 17 Apr 2019 15:33:31 +0000 (09:33 -0600)
gtk/configure.ac
gtk/src/callbacks.c
gtk/src/main.c
gtk/src/queuehandler.c
gtk/src/videohandler.c
libhb/param.h

index 4a1788efbdbb3db29225ef697c728fb912aa29cf..33822f524b544d1ae2011c4523ea4ced99ed4396 100644 (file)
@@ -191,13 +191,10 @@ fi
 
 if test "x$use_x265" = "xyes" ; then
     HB_LIBS="$HB_LIBS -lx265"
-if test "x$use_numa" = "xyes" ; then
-    HB_LIBS="$HB_LIBS -lnuma"
-fi
 fi
 
 if test "x$use_qsv" = "xyes" ; then
-    HB_LIBS="$HB_LIBS -lmfx -lva -lva-drm"
+    HB_LIBS="$HB_LIBS -lmfx"
 fi
 
 case $host in
@@ -215,6 +212,16 @@ case $host in
   *-*-freebsd*)
     HB_LIBS="$HB_LIBS -lpthread"
     ;;
+  *-*-linux*)
+    if test "x$use_qsv" = "xyes" ; then
+        HB_LIBS="$HB_LIBS -lva -lva-drm"
+    fi
+    if test "x$use_x265" = "xyes" ; then
+    if test "x$use_numa" = "xyes" ; then
+        HB_LIBS="$HB_LIBS -lnuma"
+    fi
+    fi
+    ;;
   *)
     HB_LIBS="$HB_LIBS -ldl -lpthread"
     ;;
index 0e066c08a7920e4f016b49753274684df72e9531..f73892ba9b283fba87677c81edef5682da155785 100644 (file)
@@ -86,6 +86,7 @@
 #include "hb-backend.h"
 #include "ghb-dvd.h"
 #include "ghbcellrenderertext.h"
+#include "libavutil/parseutils.h"
 
 static void update_queue_labels(signal_user_data_t *ud);
 static void load_all_titles(signal_user_data_t *ud, int titleindex);
@@ -1063,7 +1064,7 @@ parse_datestring(const char *src, struct tm *tm)
 
     for (int i = 0; i < sizeof(maps); i++)
     {
-        if (hb_validate_param_string(maps[i].pattern), src)
+        if (hb_validate_param_string(maps[i].pattern, src))
         {
             av_small_strptime(src, maps[i].format, tm);
             return 1;
index dc064ac5d7b13afc24b8603fa8e00f3c2e01aeb7..afa55194b2025f74e4a8416de259c4ce97df7146 100644 (file)
@@ -616,7 +616,7 @@ IoRedirect(signal_user_data_t *ud)
     // Open activity log.
     config = ghb_get_user_config_dir(NULL);
     pid = getpid();
-    path = g_strdup_printf("%s/Activity.log.%d", config, pid);
+    path = g_strdup_printf("%s/Activity.log.%"PRId64, config, (long)pid);
     ud->activity_log = g_io_channel_new_file (path, "w", NULL);
     ud->job_activity_log = NULL;
     str = g_strdup_printf("<big><b>%s</b></big>", path);
index 95b79c51b6febb5bed33129a47de9d7e1eb10cc5..d00dc4a66d7f62ddb4880f1aba80b7e8d447199c 100644 (file)
@@ -1175,7 +1175,7 @@ ghb_low_disk_check(signal_user_data_t *ud)
     hb_window = GTK_WINDOW(GHB_WIDGET(ud->builder, "hb_window"));
     dialog    = gtk_message_dialog_new(hb_window, GTK_DIALOG_MODAL,
             GTK_MESSAGE_WARNING, GTK_BUTTONS_NONE,
-            _("%sThe destination filesystem is almost full: %"PRIu64"MB free.\n"
+            _("%sThe destination filesystem is almost full: %"PRId64" MB free.\n"
               "Destination: %s\n"
               "Encode may be incomplete if you proceed.\n"),
             paused_msg, free_size / (1024 * 1024), dest); 
index a85f5a8b6bab4fea76888bed59cf91975dcedce1..926fac6e08c1943b59810d252a1ad15e678eba7b 100644 (file)
@@ -306,8 +306,6 @@ format_video_preset_cb(GtkScale *scale, gdouble val, signal_user_data_t *ud)
     return g_strdup_printf(" %-12s", "ERROR");
 }
 
-#include <execinfo.h>
-
 G_MODULE_EXPORT gchar*
 format_vquality_cb(GtkScale *scale, gdouble val, signal_user_data_t *ud)
 {
index d0d5cb9c472457abea6d3389ed13177a816543ec..378c5e5788a62e1aca7cfe93874a70e532c44029 100644 (file)
@@ -26,6 +26,7 @@ hb_dict_t * hb_generate_filter_settings(int filter_id, const char *preset,
 char * hb_generate_filter_settings_json(int filter_id, const char *preset,
                                         const char *tune, const char *custom);
 
+int    hb_validate_param_string(const char *regex_pattern, const char *param_string);
 int    hb_validate_filter_preset(int filter_id, const char *preset,
                                  const char *tune, const char *custom);
 int    hb_validate_filter_settings(int filter_id, const hb_dict_t *settings);