summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2015-04-28 22:55:24 +0000
committerjstebbins <[email protected]>2015-04-28 22:55:24 +0000
commit722e5be5cb99797662346f5643c71d8da6357dd3 (patch)
tree5aa7054dfc33034be4ea8bee6a12aab646aaeb71
parent7fd7267ce0e0f91bd1a57f7224c1296169814c86 (diff)
LinGui: fix dest file generateion for block devices
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7132 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--gtk/src/callbacks.c4
1 files 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