summaryrefslogtreecommitdiffstats
path: root/gtk/src
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2019-04-17 09:33:31 -0600
committerJohn Stebbins <[email protected]>2019-04-17 09:33:31 -0600
commitf96678482e066da83cb6927b150c53bce4e1009a (patch)
tree0180744a80f0862dddbb8ce129352ed4da743a7b /gtk/src
parent9582c349bbf51453d6eec93e4ee68b1ccd920078 (diff)
LinGui: fix additional mingw gtk UI build issues
Diffstat (limited to 'gtk/src')
-rw-r--r--gtk/src/callbacks.c3
-rw-r--r--gtk/src/main.c2
-rw-r--r--gtk/src/queuehandler.c2
-rw-r--r--gtk/src/videohandler.c2
4 files changed, 4 insertions, 5 deletions
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c
index 0e066c08a..f73892ba9 100644
--- a/gtk/src/callbacks.c
+++ b/gtk/src/callbacks.c
@@ -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;
diff --git a/gtk/src/main.c b/gtk/src/main.c
index dc064ac5d..afa55194b 100644
--- a/gtk/src/main.c
+++ b/gtk/src/main.c
@@ -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);
diff --git a/gtk/src/queuehandler.c b/gtk/src/queuehandler.c
index 95b79c51b..d00dc4a66 100644
--- a/gtk/src/queuehandler.c
+++ b/gtk/src/queuehandler.c
@@ -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);
diff --git a/gtk/src/videohandler.c b/gtk/src/videohandler.c
index a85f5a8b6..926fac6e0 100644
--- a/gtk/src/videohandler.c
+++ b/gtk/src/videohandler.c
@@ -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)
{