From 722e5be5cb99797662346f5643c71d8da6357dd3 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Tue, 28 Apr 2015 22:55:24 +0000 Subject: LinGui: fix dest file generateion for block devices git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7132 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- gtk/src/callbacks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c index 832551177..e4a0857a6 100644 --- a/gtk/src/callbacks.c +++ b/gtk/src/callbacks.c @@ -735,7 +735,7 @@ update_source_label(signal_user_data_t *ud, const gchar *source) if (g_stat(filename, &stat_buf) == 0) { len = strlen(filename); - if (stat_buf.st_mode & S_IFDIR) + if (S_ISDIR(stat_buf.st_mode)) { // Skip dos drive letters #if defined(_WIN32) @@ -787,7 +787,7 @@ update_source_label(signal_user_data_t *ud, const gchar *source) g_strfreev (path); } } - else if (stat_buf.st_mode & S_IFBLK) + else if (S_ISBLK(stat_buf.st_mode)) { // Is regular file or block dev. // Check to see if it is a dvd image -- cgit v1.2.3